Monday, 18 May 2020

CONVERSION OF CURRENCY:

CONVERSION OF CURRENCY:

 THE FOLLOWING PROGRAM SHOWS THE CONVERSION OF RUPEES TO DOLLARS.

#include<stdio.h>
#include<conio.h>
void main()
{
int Rs,Dollars;
clrscr();
printf("Enter Rupees to convert rs to $");
Dollar=80;
Rs=0;
scanf("%d",&Rs);
Dollar=Rs*Dollar;
printf("THE RESULT IS Rs=%d",Rs,Dollar);
getch();
}

PROGRAM EXPLANATION:

      THIS PROGRAM IS USED TO CONVERT INTO RUPEES TO DOLLARS.

       IF YOU WANT TO CHANGE THE VALUE OF THE CURRENCY THEN YOU CAN REPLACE RUPEES AND DOLLARS AND CHANGE THE VALUES OF THE CURRENCY.

TYPE LIKE THIS:

CURRENCY CONVERSION IN C

OUT PUT IS AS FOLLOWS:



No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...