Advertisement
Kajoj

Std15.10.08_8

Oct 8th, 2015
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6.     int a;
  7.     float b;
  8.     printf("Podaj promien kola: ");
  9.     scanf("%d",&a);
  10.     b=2*M_PI*a;
  11.     printf("Obwod to: %0.3f", b);
  12.     b=M_PI*(a*a);
  13.     printf("\nPole to: %0.3f", b);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement