#include <stdio.h>
#include <conio.h>
int main()
{
float inches,centimeters;
printf("Enter number of inches : ");
scanf(, &inches);
centimeters = (inches * 2.5);
printf("Answer is :", centimeters);
getch ();
}
ผมเขียนโปรแกรมแบบนี้ถูกมั้ยครับ แล้วทำไมตอนรันต์ ใส่ อะไร มันก็ได้แค่ 0.000000 ล่ะครับ
สอบถามเกี่ยวกับการเขียนโปรแกรม Dev c+++
#include <conio.h>
int main()
{
float inches,centimeters;
printf("Enter number of inches : ");
scanf(, &inches);
centimeters = (inches * 2.5);
printf("Answer is :", centimeters);
getch ();
}
ผมเขียนโปรแกรมแบบนี้ถูกมั้ยครับ แล้วทำไมตอนรันต์ ใส่ อะไร มันก็ได้แค่ 0.000000 ล่ะครับ