Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //APS 01 EX 03
- //ALGORITMOS 02 PROF MALGARETE - CENTRO TECNOLOGICO UNIVERSIDADE POSITIVO
- //GILMAR JUNIOR DOS PASSOS
- #include "stdlib.h"
- #include "conio.h"
- #include "stdio.h"
- #include "string.h"
- #include "locale.h"
- void main()
- {
- setlocale(LC_ALL, "Portuguese");
- float peso, peso1, peso2;
- printf ("Favor informar o peso:\n");
- scanf ("%f",&peso);
- peso1 = ((peso * 15) / 100) + peso;
- peso2 = ((peso * 20) / 100) - peso;
- printf ("Se engordar 15 \n");
- printf ("%.2f",peso1);
- printf ("\nSe emagrecer 20 \n");
- printf ("%.2f",peso2);
- getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment