0
when would i use variables?
i tried to run the code, but it said no output. so what's the point of putting those?
4 odpowiedzi
+ 3
You use variables when you need to store a value that can change dynamically.
Maybe the variable you used may have been empty. that's why there was no output.
0
variables are used to define a number or an statement
0
variables are containers to store data. you have to fill the container with some data otherwise you won't get output.
0
The program shows no output because there is no output command in that program such as system.out.println() etc