How will I put the values of my variable while executing my program??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How will I put the values of my variable while executing my program???

23rd Jul 2022, 1:13 AM
Yash Agrwl
3 Answers
0
- Programming language or direct Code - Please use relevant tags
23rd Jul 2022, 1:41 AM
Felix Alcor
Felix Alcor - avatar
+ 6
Yash Agrwl Declare a variable and then assign a value to it For example:- if you want to give a integer value to a variable named age so int age = 10; You have to put the datatype of the given variable
23rd Jul 2022, 3:29 AM
Suparna Das
Suparna Das - avatar
0
Programming language is Java
23rd Jul 2022, 1:46 AM
Yash Agrwl