+ 1
How do i get the input of a number to multiply it
I need to take the input from the user to write a else if code how do I do it
8 Antworten
+ 8
Python:
a = int(input())
if a != 0:
//do something
else:
//do something
+ 5
mention which programming language you refer here.. every language has unique input code.. Morpheus
+ 4
Here an example in JS.
var a = prompt("Enter a number");
if (a==5) {
//do something
} else {
//do something
}
+ 4
Here an example in Python.
a = int(input("Enter a number"))
if a==5 :
#do something
else :
#do something
+ 2
Thank you all. Now I can make a good program . thanks a lot
+ 1
Tell me plz
+ 1
sry about that . I am mentioning phyton