#include<stdio.h>voidcurrencyConvert(int value){float dollorValue;printf("Enter how much dollor you have\t");scanf("%f",&dollorValue);switch(value){case1:printf("Euro(EUR) value of %0.2f dollor is %0.2f ", dollorValue ,(dollorValue*0.99));break;case2:printf("Pound Sterling(GBP) value of %0.2f dollor is %0.2f ", dollorValue ,(dollorValue*0.86));break;case3:printf("Australian Dollor(AUD) value of %0.2f dollor is %0.2f ", dollorValue ,(dollorValue*1.53));break;case4:printf("Canadian Dollor(CAD) value of %0.2f dollor is %0.2f ", dollorValue ,(dollorValue*1.34));break;case5:printf("Swiss Franc(CHF) value of %0.2f dollor is %0.2f ", dollorValue ,(dollorValue*0.98));break;case6:printf("Indian Rupee(INR) value of %0.2f dollor is %0.2f ", dollorValue ,(dollorValue*81.31));break;default:printf("Please enter valid input");break;}}intmain(){printf("Currency Converter..........");int userInput , select;
again:printf("Select option .......\n");printf("1. Dollor to Euro(EUR)\n");printf("2. Dollor to Pound Sterling(GBP)\n");printf("3. Dollor to Australian Dollor(AUD)\n");printf("4. Dollor to Canadian Dollor(CAD)\n");printf("5. Dollor to Swiss Franc(CHF)\n");printf("6. Dollor to Indian Rupee(INR)\n");scanf("%d",&userInput);currencyConvert(userInput);printf("If you want to continue then enter 1 else enter 0\n");scanf("%d",&select);if(select ==1){goto again;}else{printf("Thanks ...\n");}}