0

How i fix this code? I want if rem>=10 , how i change in to a ABCD..

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

16th May 2017, 1:28 AM
Madusha chamal
Madusha chamal - avatar
3 Respuestas
+ 2
I keep getting the error that rem may not have been initialized. Have you tried "int rem = 0;"?
16th May 2017, 2:24 AM
Steven Schneider
Steven Schneider - avatar
+ 1
Are 1, 2 and 3 the remainders you're expecting to choose between?
16th May 2017, 2:30 AM
Steven Schneider
Steven Schneider - avatar
+ 1
You declare "int rem;" but later in the code you assign "rem = 'A' ;". So is rem supposed to be an integer or a character?
17th May 2017, 8:17 PM
Steven Schneider
Steven Schneider - avatar