手机蓝光膜有什么用:C语言编程:输入圆的半径,求圆的面积(s=pi*r*r)π使用符号常量定义为PI
来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 02:24:36
#include<conio.h>
#include<stdlib.h>
#include<process.h>
#include<stdio.h>
#define PI 3.1415926
void main()
{
float s,r;
gotoxy(10,10);
printf("please input your circle R:");
scanf("%f",&r);
s=PI*r*r;
gotoxy(10,14);
printf("THIS CIRCLE S:%f",s);
getch();