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 LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000)

Posted By: Ty Thompson     Category: C Programming     Views: 2239

WRITE A PROGRAM TO READ THE PRICE OF AN ITEM IN DECIMAL FORM LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000).

Code for PROGRAM TO READ THE PRICE OF AN ITEM IN DECIMAL FORM LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000) 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 To Paisa : 50

 The PAISA of you Rs. Equal To : 5000

***********************************************************************
  
Share: 



Ty Thompson
Ty Thompson author of PROGRAM TO READ THE PRICE OF AN ITEM IN DECIMAL FORM LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000) is from Perth, Australia.
 
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!