+ 2
Error !
https://code.sololearn.com/cMb4XM0bT2gj/?ref=app This code is giving me an error :- Variable d , m and y might not have been initialized.🤔🤔🤔 Any help guys...
2 Respostas
+ 10
Initialize them with a value, in your case, 0 is a right choice for initial value of those three variables.
int d = 0;
int m = 0;
int y = 0;
+ 3
now it works, code edited