Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char a[30],b[30], c[30],d[30];
- printf ("your name? ");
- gets(a);
- //scanf ("%s", a);
- printf ("your univarsity? \n");
- gets(b);
- //scanf ("%s", b);
- printf ("your dept? \n");
- gets(c);
- //scanf ("%s", c);
- printf ("your major? \n \t");
- gets(d);
- //scanf ("%s", d);
- printf ("Name Entered is : %s\n", a);
- printf ("your varsity is : %s\n", b);
- printf (" Entered dept is : %s\n", c);
- printf (" Entered major is : %s\n", d);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement