0

In the last sentence: num = num +1; what does this means?

3rd Dec 2016, 11:06 PM
Claudia Yan Marín de Querol
Claudia Yan Marín de Querol - avatar
7 Respuestas
+ 3
It's assign the current value of num to num , but adding 1 more. example: num = 1; num = num + 1; print(num); // output : 2 num = num +1; print(num); // output : 3 It's usally written"num++;" for loops
4th Dec 2016, 12:30 AM
Nahuel
Nahuel - avatar
+ 1
It's a thing done for increment of one digit
7th Dec 2016, 3:19 PM
Don't Challenge Me I Am Learning
Don't Challenge Me I Am Learning - avatar
+ 1
It will increase numbers until it reaches a point where it becomes smaller than 6 as num>6 means same
7th Dec 2016, 3:21 PM
Don't Challenge Me I Am Learning
Don't Challenge Me I Am Learning - avatar
0
it increments the num variable by 1 . the same as num+=1 or num++
3rd Dec 2016, 11:13 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
util it is, for eg. num>6 no?
3rd Dec 2016, 11:23 PM
Claudia Yan Marín de Querol
Claudia Yan Marín de Querol - avatar
0
ok thanks!
4th Dec 2016, 1:21 AM
Claudia Yan Marín de Querol
Claudia Yan Marín de Querol - avatar
0
ok thanks!
4th Dec 2016, 1:21 AM
Claudia Yan Marín de Querol
Claudia Yan Marín de Querol - avatar