Advertisement
FAMDS

ATV 2

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