Advertisement
godsqueezy

Untitled

Feb 6th, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int rebro;
  7.     printf("Enter dlina rebra ");
  8.     scanf("%d", &rebro);
  9.     printf("Dlina rebra is %d\n", rebro);
  10.     printf("Ploshad grani is %d\n", rebro*rebro);
  11.     printf("Ploshad bokovoi poverhnosti is %d\n", 4 * (rebro*rebro));
  12.     printf("Ob'em cuba %d\n", rebro*rebro*rebro);
  13.  
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement