Advertisement
Avdluna

Untitled

Sep 14th, 2015
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.  
  7. double a,b,c,summe;
  8.  
  9. while(1){
  10.  
  11. scanf("%lf",&a);
  12.  
  13.  
  14. if(a == 0){
  15.  
  16. break;
  17.  
  18. }
  19. else{
  20. scanf("%lf %lf",&b,&c);
  21.  
  22. summe = (a*b* c)/2;
  23.  
  24. printf("%.0lf paginas\n",summe);
  25. }
  26.  
  27. }
  28.  
  29.  
  30.  
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement