Can somone tell me what's wrong in this code | SoloLearn: Learn to code for FREE!


Can somone tell me what's wrong in this code

1/20/2021 5:47:01 AM


4 Answers

New Answer


You have to use '%' operator to get the reminder


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.


Ok Thank you. I found it helpful.


Thank you . Please can you explain me that what was my mistake .