Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as C++ by registered user xujiayu ( 5 years ago )
#include <stdio.h>
#include <conio.h>
#define PI 3.14
int main()
{
	
	//nhap ban kinh cua duong tron. tinh chu vi va dien tich cua hinh tron do 
	float bankinh;
	float chuvi , dientich;
	printf("\nnhap vao ban kinh : ");
	scanf("%f", &bankinh);

        chuvi = bankinh * 2 * PI;
	dientich =bankinh * bankinh * PI;

	printf("\nchu vi = %f",chuvi);
	printf("\ndien tich = %f",dientich);



   getch();
   return 0;


}

 

Revise this Paste

Children: 116849
Your Name: Code Language: