Why is this code not working?
Attachments:
Answers
Answered by
1
ERROR :-
if you not provide return type
i.e, void or int or float before main function then it automatically set it default to int return type.
so, in this case your return type is int
And, if there is return type int then you have to specify return 0; at the last statement of code.
So, just write return 0; at last statement the code will run .
I hope it work ..
Similar questions