Advertisement
FAMDS

Atv 3

Nov 13th, 2022 (edited)
889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. int
  2. main ()
  3. {
  4.   char nome[21], raca[10], sexo[9];
  5.   float peso;
  6.  
  7.   do
  8.     {
  9.       printf ("informe o nome do animal\n");
  10.       scanf ("%s", nome);
  11.       printf ("informe o peso do animal\n");
  12.       scanf ("%f", &peso);
  13.       printf ("informe o raca do animal\n");
  14.       scanf ("%s", raca);
  15.       printf ("informe o sexo do animal\n");
  16.       scanf ("%s", sexo);
  17.     }
  18.   while (nome != "PARAR");
  19.   return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement