Computer Science, asked by hermoinegranger7, 1 year ago

what is wrong in the program Redo it ( Java based)
NO SPAMING. ......❌❎

Attachments:

nitish8089: what you want to do...
nitish8089: would you want to solve earlier series solve code
nitish8089: 1 2 4 6 ....

Answers

Answered by attrice02
0
You haven't added one line.
Scanner sc = new Scanner (System.in);
You have to add this line along with the void main line.
Maybe you could also remove the "int n" part which is in the brackets. I don't think it's necessary. Just declare and initialise the variables in another line. I hope you understand. :)

hermoinegranger7: it's not the thing
hermoinegranger7: I tried it
attrice02: Then?
attrice02: No, but you have to add that line atleast. It is kinda compulsory.
sukhaprmesh: hiii
attrice02: Hi.
surajsharmaa: attrice hy baby
jass1322: hii
Similar questions