Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

program to read the price of an item in decimal form and print the output in paisa

Posted By: Sophia Campbell     Category: C Programming     Views: 5123

Write a program to read the price of an item in decimal form and print the output in paisa.

Code for program to read the price of an item in decimal form and print the output in paisa in C Programming

#include<conio.h>
#include<stdio.h>
void main()
{
    float rs;
    int PAISA;
    clrscr();
    printf("Enter the Rs. you want to convert to paisa :- ");
    scanf("%f",&rs);

    PAISA=rs*100;
    printf("\n The PAISA of you Rs. equal to :- %d",PAISA);

    getch();
}

/*
********
OUTPUT:
********

Enter the Rs. you want to convert into paisa :- 12.50

The paisa of Rs. is equal to :- 1250
*/
  
Share: 



Sophia Campbell
Sophia Campbell author of program to read the price of an item in decimal form and print the output in paisa is from Toronto, Canada.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!