0

Can somone tell me what's wrong in this code

https://code.sololearn.com/cMaWm9rk2L7Z/?ref=app

20th Jan 2021, 5:47 AM
Rakshanda
Rakshanda - avatar
4 odpowiedzi
+ 7
You have to use '%' operator to get the reminder https://code.sololearn.com/cxfnpjiSWPkN/?ref=app
20th Jan 2021, 6:50 AM
Simba
Simba - avatar
+ 2
You have solved two codes on codebit your division code have errors first mistake your variable decleration syntex is not valid You should write like this First data type then variable name for example int variable // this is decleration int variable=20; // this is initialization And u used int type of data and u have written in double quotes which is invalid if u want to declear String then u can use double quotes . In if statement you also used double quotes and u used semicolon at the end of if statement so this statement will end here . First read basics of language and do practice.
20th Jan 2021, 6:49 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
Ok Thank you. I found it helpful.
20th Jan 2021, 7:16 AM
Rakshanda
Rakshanda - avatar
0
Thank you . Please can you explain me that what was my mistake .
20th Jan 2021, 5:59 AM
Rakshanda
Rakshanda - avatar