Before seeing the solution make sure that you tried enough. Don’t paste the whole code, just find out the logic. If you stuck in trouble, just inform me on comment.
/**Bismillahir Rahmanir Rahim.**/ #include <stdio.h> #include <string.h> int main() { int a,b,c,d,e; char ara[100]; scanf("%d", &a); for(b=1; b<=a; b++) { gets(ara); getchar(); } printf("Ciencia da Computacao\n"); return 0; }
Why use getchar() ?
ReplyDeletegets() removed from C11
ReplyDelete