Can we use user defined int in the program? Can it be plased in other variable ?plz write program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we use user defined int in the program? Can it be plased in other variable ?plz write program

eg if i enter 5 then can its value be store in variable ""a"

25th Jun 2017, 6:04 AM
Abinash Niure
Abinash Niure - avatar
4 Answers
+ 3
Do you mean like this: int x = Scan.nextInt(); int a = x; ?
25th Jun 2017, 1:11 PM
Limitless
Limitless - avatar
+ 2
write whole small program
25th Jun 2017, 1:18 PM
Abinash Niure
Abinash Niure - avatar
+ 2
25th Jun 2017, 1:22 PM
Limitless
Limitless - avatar
+ 1
Where's your attempt to make the program? I'm slightly confused myself.
25th Jun 2017, 1:21 PM
Limitless
Limitless - avatar