0
Fix this pls
2 Antworten
+ 7
Where are you running or trying this code?
canio.h is deprecated, non-standard header file. Don't use , remove it. So getch() don't work. Instead try getchar()..
Put comma, between statements to separate them. Other wise, that is single and invalid statement like you put scanf(...)
Correct way is :
scanf("%d%d", &a, &b);
put return type of main as int like
int main() {
...
}
+ 4
There's still an extra % in your scanf, should just be %d%d
Also it wouldn't hurt to remove that orphan getchar() at the bottom, and to add \n to the end of both outputs, just to clean things up a bit