Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  123
Language: C/C++
Code:
#include <stdio.h>

int main(void) {
     // your code goes here
     
     int num;
     char term;
     
     if(scanf("%d%c", &num, &term) != 2 || term != '\n')
         printf("failure\n");
     else
         printf("valid integer followed by enter key\n");
     
     return 0;
}
Comments: