What's wrong with this?
Code:#include <stdio.h> int main (void) { printf("Enter a number\n"); int x=getchar(); while(getchar() != '\n'); printf("Enter a number\n"); int y=getchar(); int result=y+x; printf("Here is the result %d\n", result); return 0; }
It doesn't add the numbers successfully



LinkBack URL
About LinkBacks


