#include <stdio.h> void main() { int i; float usd, bdt; printf("Press 1 to convert USD to BDT\nPress 2 to convert BDT to USD\n"); printf("Enter your choice: "); scanf("%d", &i); switch(i) { case 1: printf("Enter amount in USD: "); scanf("%f", &usd); bdt = usd * 80; printf("1 USD = 80 BDT\n"); printf("%0.3f USD = %0.3f BDT", usd, bdt); break; case 2: ...
Comments
Post a Comment