0

Code requiring Input

In the "Working with Variables" lesson in "Basic Concepts", it tells me that the code is asking for an input, I have no clue what to put in for it to work.

26th Oct 2017, 5:35 PM
awoo_lord
awoo_lord - avatar
3 Answers
+ 6
int a; this is declaration of the variable to use. a=7; this is initialization i have used the declared variable "a" which has a data type " int " and assigned to a value of 7. hope that helps
26th Oct 2017, 5:45 PM
D_Stark
D_Stark - avatar
+ 2
Depending on which example you have, either 1 or 2 numbers. First two are a single number. Second two wants two.
26th Oct 2017, 5:52 PM
John Wells
John Wells - avatar
+ 1
What's the actual question? Without knowing the question, if you look at the code, what data types do you see? That's a good means of figuring out what it's asking for. If you see a bunch of int variables, it's probably asking for a number.
26th Oct 2017, 5:39 PM
AgentSmith