#include<stdio.h>
main()
{
float n;
int sum;
printf("Enter the value in decimal ");
scanf("%f",&n);
sum = 100 * n;
printf(" \nThe paise is %d.", sum);
getch();
return 0;
}
Output :
Enter the value in decimal 15.95
The paise is 1595.
< A Collection Of Examples />
#include<stdio.h>
main()
{
float n;
int sum;
printf("Enter the value in decimal ");
scanf("%f",&n);
sum = 100 * n;
printf(" \nThe paise is %d.", sum);
getch();
return 0;
}
0 comments:
Post a Comment