沸雷泽和福尔曼战:C语言编程:输入圆的半径,求圆的面积(s=pi*r*r)π使用符号常量定义为PI
来源:百度文库 编辑:高考问答 时间:2024/05/24 00:40:54
#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();