[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้#include <stdio.h>
#include <conio.h>
#include <string.h>
int main ()
{
float money;
printf ("Enter money :");
scanf ("%d\n",&money);
if (money>=2000 && money<=30000)
{
float total;
float in;
float tax;
total=money*36;
in=total*5.5;
tax=in*0.15;
printf ("3 years = %.2f bath\n",total);
printf ("Interest = %.2f bath\n",in);
printf ("Tax of interest (15%) =%.2f bath \n",tax);
in-=tax;
total+=in;
printf ("Interrest - Tax (15%) = %.2f bath \n",in);
printf ("Total = %d bath \n",total);
}
else
{
printf (" YOU BITH");
}
getch ();
}
พอผมรัน มันขึ้นแค่ Enter money : และผมใส่ 30000 แล้วกด enter ก็ไม่มีอะไรต่อเลยครับ อยากทราบว่าผิดตรงไหน รบกวนด้วยครับ แก้นานแล้ว
รบกวนดู code ภาษา C วาผิดตรงไหนหน่อยครับ
พอผมรัน มันขึ้นแค่ Enter money : และผมใส่ 30000 แล้วกด enter ก็ไม่มีอะไรต่อเลยครับ อยากทราบว่าผิดตรงไหน รบกวนด้วยครับ แก้นานแล้ว