How to write a C Program scanf & gets Example in C Programming Language ?
Solution For C Program :
//C Program scanf & gets Example.
#include <stdio.h>
int main(){
int n;
char s[100];
scanf("%d ", &n);
// gets(s); // clear'\n'
gets(s);
printf("n: %d\n", n);
printf("s: %s\n", s);
return 0;
}