Advertisement
fellpz

printf() com laço

Apr 5th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. int main ()
  3. {
  4.     char strings [5][100];
  5.     int count;
  6.     for (count=0; count<5; count++)
  7.     {
  8.     printf ("\n\nDigite uma string: ");
  9.     gets (strings[count]);
  10.     }
  11.     printf ("\n\n\nAs strings que voce digitou foram:\n\n");
  12.     for (count=0;count<5;count++)
  13.         printf ("%s\n",strings[count]);
  14. return(0);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement