โปรแกรมแปลงหน่วยบาทไทยเป็นยูเอสดอลลาร์ (อัตราแลกเปลี่ยนที่ 30 บาท = 1ดอลลาร์)
#include <stdio.h>
#include <conio.h>
int main()
{
int Bath;
float Dollar;
printf("Enter Number of Bath :");
scanf("%d",&Bath);
Dollar = Bath/30;
printf("%d Bath=%.2f Dollar \n",Bath,Dollar);
getch();
return 0;
}
โปรแกรมแปลงหน่วยบาทไทยเป็นยูเอสดอลลาร์ (อัตราแลกเปลี่ยนที่ 30 บาท = 1ดอลลาร์)
Return to “Programming - C/C<sup>++</sup>& java”
Who is online
Users browsing this forum: No registered users and 1 guest