Program to Convert Rupess into Paisa using c language

11/15/2023
All Articles

Program Convert Rupess into Paisa using c language

 Program to Convert Rupess into Paisa using c language

Write a C Program to Convert Rupess into Paisa

Simple program to learn c language ,we are implement logic that is  doing a multiply with 100 to given value and produce result.

#include<stdio.h>
#include<conio.h>

int main()
{
             float rs;  //define variable for rupees
             int ps;    //define   variable for paisa
             clrscr();

             printf("\n\n kindly Enter value of rupees to convert into paisa : ");
             scanf("%f",&rs);

             ps=rs*100;

             printf("\n Result of Paisa of given rupees is %d",ps);

             getch();

            return 0;

}

Conclusion

In above  program, the you can  enter the amount in Rupees.
The program then multiplies the Rupees by 100 to convert it into Paisa. Finally, it is printing the original amount in Rupees and the amount is equal to  amount in Paisa.

 

Article