Make a program in c language using switch statement is currency converter.
Pak rupees to dollars.
Pak rupees to pound.
Pak rupees to dirham.
Pak rupees to sterling.
#include <bits/stdc++.h>
using namespace std;
int main()
{
float pak_currency, dollar, pound, dirham,sterling;
cout<<"Enter Pakistaani Currency: ";
cin>>pak_currency;
dollar = pak_currency * 0.0064;
pound = pak_currency * 0.0046;
dirham = pak_currency * 0.024;
sterling = pak_currency * 0.0046;
cout<<"Pakistani Currency in Dollars: "<<dollar<<endl;
cout<<"Pakistani Currency in Pound: "<<pound<<endl;
cout<<"Pakistani Currency in Dirham: "<<dirham<<endl;
cout<<"Pakistani Currency in Sterling: "<<sterling<<endl;
return 0;
}
Comments
Leave a comment