How to assign number to value | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to assign number to value

I want to assign the number 250 to the value numberOfPeople ... how can I do that?

27th Feb 2017, 2:04 AM
Luke Mai
Luke Mai - avatar
1 Answer
+ 2
if you mean assign data to variable, do it like numberOfPeople = 250; here variable should int type
27th Feb 2017, 2:11 AM
Aditya kumar pandey
Aditya kumar pandey - avatar