loops tag

55 questions


1 answers
96 views
0
This is a question when you define the initial expression of the c language for statement as an array.

void dice(int count) { int i; if (n < count) { print(n); return; } for (i = arr[count - 1]; i <= 6; i++) { arr[count] = i; dice(count + 1); }}This is.Looking at this code, count gave the par...

2 years ago

1 answers
117 views
0
Ask a Java repeat question.

import java.util.Scanner; // Invoke an external class to insert a scannerpublic class money { public static void main(String[] args) { // // TODO Auto-generated method stub String input; Scanner sc...

2 years ago

1 answers
114 views
0
c-language double-repeated statements

#include <stdio.h> void dice(int , int );int main(void){int input1, input2;scanf_s(%d%d, &input1, &input2);dice(input1, input2);return 0;}void dice(int num1, int num2){int a = 1, b = 1;w...

2 years ago

1 answers
84 views
0
I'm curious about how to increase the number in brackets using Python iterations.

Hello. I'm asking you a question because I'm stuck while studying Twitter crawl on Python.I thought the problem would be solved quickly because it was very simple, but I can't think of a solution.//im...

2 years ago

2 answers
81 views
0
This is a question related to the Python list enumerate repeat statement.

I'm writing code to make it like this, but it got stuck while writing no1~5 below.score = [88,95,70,100,99] classes = [Korean, Math, Science, Physics, Chemistry] for i, v...

2 years ago

2 answers
90 views
0
Ask for dynamic generation code using Android Linear Layout for statement

I'm making a program that makes a 365-day button to make a year's calendar, but as I set Layout every week, the coding gets too long if I do it, so I tried to use an arrangement using a for statement,...

2 years ago

1 answers
86 views
0
Code efficiency: Read_excel the various daily price data in Excel to make it a dictionary form.

#Create SuperfileOrgdf1 = pd.read_excel('C:\pytest\\Data_org_superfile.xlsx',sheet_name='name')Data_Org = {}for Freq in set(df1['Freq']): Data_Org[Freq] = {} for i,NAME in tqdm(enumerate(df1[df1['Freq...

2 years ago

2 answers
110 views
0
Python Repeat Question.

While using the format function, it seems that there was a problem that I did not know the concepts of global and regional variables.You set global variables such as a0, b0, which are data frames with...

2 years ago

1 answers
119 views
0
c++ Repeating Statement

#include <iostream>using namespace std;int main(){ const int N=3; int i,j; for(i=0; i < N; i++){ for(j=i; j < N; j++){ cout << i << << j << endl; } }}When you go ...

2 years ago

2 answers
97 views
0
To join a python list element to a certain rule

# Parsing matchalpha_list = [A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P]# After parsing alpha_list = [A, &, B, &, C, &, D, &&, E, &, F, &, G, &, H, &&, I, &...

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.