Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- #include<conio.h>
- float dienTichTron(int r){
- float S = r*r*3.14;
- return S;
- }
- int main(){
- int r;
- printf("Nhap ban kinh hinh tron: ");
- scanf("%d",&r);
- printf("Dien tich hinh tron: %f",dienTichTron(r));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment