Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Exe14
- #include <iostream>
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h>
- #include <locale.h>
- using namespace std;
- main()
- {
- setlocale (LC_ALL, "portuguese");
- float r;
- float h;
- float PI;
- printf ("Digite o raio do cilindro: ");
- scanf ("%f" ,&r);
- printf ("Digite a altura do cilindro: ");
- scanf ("%f" ,&h);
- printf ("Digite o valor de PI: ");
- scanf ("%f" ,&PI);
- printf ("O volume do cilindro é: %.0f\n" ,PI*(r*r)*h);
- system ("pause>>null");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment