if문 tag

47 questions


1 answers
168 views
0
Use Python conditional if

Enter a formula (*for example, 20*40): 21.1 + 30.021.100000 + 30.000000 = 51.100000a,b=input (Enter a formula (*for example, 20*40):)split()I know how to write an input function in this form, but I do...

2 years ago

1 answers
119 views
0
How do I write conditional statements across lines in an if statement?

What kind of method should I use to write conditions across lines for if?if (cond1 == 'val1' and cond2 == 'val2' and cond3 == 'val3' and cond4 == 'val4'): do_somethingThis way, code3 is on the same li...

2 years ago

1 answers
49 views
0
Cocera Michigan University Python Repeating Questions Questions

largest = Nonesmallest = Nonewhile True: num = input(Enter a number: ) if num == done : break print(num)print(Maximum, largest)The above is the hint code. When you output Done, you repeatedly process ...

2 years ago

1 answers
85 views
0
I have a question for Python if Moon.

a=input('Enter multiple numbers:')a=list(a)try: if a.index('%') : del a[a.index('%')]elif a.index(' ') : del a[a.index(' ')]except : pass for i in range(len(a)) : print('\u2665' * 2*int(a.po...

2 years ago

1 answers
110 views
0
Python socket communication and mysql communication questions

import socketimport jsonimport pymysqlHOST = ''PORT = i = 0list_data =[]s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.bind((HOST, PORT))s.listen(1)while True : try : conn,addr = s.accept() ...


1 answers
54 views
0
Visual studio 2017 c++ if and else statements are not executed.

When you are coding a red black tree and debug granpa!= nullptr even though it is true, the entire phrase is skipped.I stopped it in debugging mode and checked it by pressing f11, but I only ran the l...

2 years ago

2 answers
48 views
0
How to bind conditions within c language if

if((num1 != 0 && num2 != 0 && num1 == num2) || (num1 != 0 && num2 != 0 && num1 == num2)) {Photo examples}Can you tie the conditions in the if in the form of the picture...

2 years ago

1 answers
51 views
0
c Language if Statement Question

There are times when you get confused by the conditional expression in the if statement.if(num%10) ~~~~else ~~~~If I divide num by 10 and I can't find the rest, do I go to else?How do I understand?

2 years ago

1 answers
91 views
0
I'm working on a program using if-else-elif, but there's something I don't know.

Using elif,I'm working on a parking calculation program. I'm going to make a program like thisYou parked for a few minutes How much do you have to pay?How do I program to make it float?!

2 years ago

1 answers
107 views
0
c language ifelse statement question

This is a question that enters three integers and indicates whether each integer is even or odd. int a, b,c; scanf_s(%d%d%d, &a,&b,&c); if (a % 2 == 0) { printf(%s\n, even); } else if (a ...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.