Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. //Exe14
  2. #include <iostream>
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <math.h>
  6. #include <locale.h>
  7. using namespace std;
  8. main()
  9. {
  10. setlocale (LC_ALL, "portuguese");
  11. float r;
  12. float h;
  13. float PI;
  14. printf ("Digite o raio do cilindro: ");
  15. scanf ("%f" ,&r);
  16. printf ("Digite a altura do cilindro: ");
  17. scanf ("%f" ,&h);
  18. printf ("Digite o valor de PI: ");
  19. scanf ("%f" ,&PI);
  20. printf ("O volume do cilindro é: %.0f\n" ,PI*(r*r)*h);
  21. system ("pause>>null");
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement