การเขียนโปรแกรม
วันพฤหัสบดีที่ 3 พฤศจิกายน พ.ศ. 2554
โปรแกรม หารเลข
#include
#include
int main(){
float number1,number2;
float total;
printf("Please Enter Number1 :");
scanf("%f",&number1);
printf("Please Enter Number2 :");
scanf("%f",&number2);
total = number1 / number2;
printf("Result is %10.2f",total);
getch();
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น