หาพื้นที่วงกลม
วันอาทิตย์ที่ 17 กุมภาพันธ์ พ.ศ. 2556
Code Program
Code Program
#include <stdio.h>
#include <conio.h>
#define pi 3.14159265
main()
{
float radius;
printf(
"Input radius : "
);
scanf(
"%f"
, &radius);
printf(
"\nSize of Circle is is %0.2f\n\n"
, pi * radius * radius);
getch();
}
ผลการRun(F9)Dev-C++
เมื่อให้ Radius = 5
ผลการRun(F9)Dev-C++
เมื่อให้ Radius = 10.5
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น