Unit Conversion

Problem Statement
write a c program to
take input from user as rupees and the print this in paise
(1 rupee=100 paise )
#include<stdio.h>
int main()
{
  int m;
  float n;
  printf("enter the value of rupees:");
  scanf("%f",&n);
  m=n*100;
  printf("the value is %d paise",m);
  return 0;
}

No comments:

Post a Comment