elseif tag

3 questions


1 answers
84 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
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
88 views
0
I don't know what's wrong with the C language if statement. ( if (0 < num1 < 45) )

#include <stdio.h>void main(){ int num1; scanf_s(%d, &num1); if (0 < num1 < 45) printf(a); else if (90 < num1 < 160) printf(b); else printf (None;}What's wrong is only a and n...

2 years ago

© 2024 OneMinuteCode. All rights reserved.