4 Answers
New AnswerYou have to use '%' operator to get the reminder https://code.sololearn.com/cxfnpjiSWPkN/?ref=app
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.
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message