Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- int a;
- float b;
- printf("Podaj promien kola: ");
- scanf("%d",&a);
- b=2*M_PI*a;
- printf("Obwod to: %0.3f", b);
- b=M_PI*(a*a);
- printf("\nPole to: %0.3f", b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement