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

0

Can somone tell me what's wrong in this code

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

1/20/2021 5:47:01 AM

Rakshanda

4 Answers

New Answer

+7

You have to use '%' operator to get the reminder https://code.sololearn.com/cxfnpjiSWPkN/?ref=app

+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.

+1

Ok Thank you. I found it helpful.

0

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