0

Set the value of y to 1,if x =>0. If x <0, set the value of y to 2. (Assume x have a value).

6th Dec 2017, 5:32 AM
m yumbong
m yumbong - avatar
6 odpowiedzi
+ 10
Homework?
6th Dec 2017, 5:38 AM
qwerty
qwerty - avatar
+ 1
y=1 y=2 Assume value= int (input ("x")) if x=>0 print (y) else: x <0 lol I'm confused.plz help
6th Dec 2017, 5:39 AM
m yumbong
m yumbong - avatar
0
thanks bro.i appreciate
6th Dec 2017, 6:01 AM
m yumbong
m yumbong - avatar
0
what is the different between elif and else?
6th Dec 2017, 6:04 AM
m yumbong
m yumbong - avatar
0
// Assume that x and y are declared if(x >= 0) y = 1; else y = 2;
6th Dec 2017, 7:12 AM
#RahulVerma
#RahulVerma - avatar