+ 1

Why it is done like x=40+60 instead of a+b... Plz explain me..i dnt understand

10th Mar 2017, 11:01 AM
lovepreet kaur
lovepreet kaur - avatar
5 odpowiedzi
+ 4
Where the thing did you don't understand at?
10th Mar 2017, 11:20 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
@LovepreetKaur, its NOT compulsive to decare a variable first. A Variable is needed when input number is different, i.e, when you need to add any two numbers that are specifies by the user.
10th Mar 2017, 11:49 AM
Meharban Singh
Meharban Singh - avatar
+ 1
I think it´s easier in bigger tasks with many numbers if every number is declared to a variable. Let´s say you have 29847, 37829, 4872938,... and so on. You just have to type the variable of each number instead of doublechecking each number if there is no mistake.
10th Mar 2017, 1:25 PM
Ricc Weltenbummler
Ricc Weltenbummler - avatar
0
That y they haven't declared these variables differently
10th Mar 2017, 11:21 AM
lovepreet kaur
lovepreet kaur - avatar
0
Thnks for your answers 😊
12th Mar 2017, 5:41 AM
lovepreet kaur
lovepreet kaur - avatar