## Problem 2.2 :: Write a program to read the price of an item in decimal form (like 15.96) and print the output in paisa ( like 1596).
## Solution ::
##Write down headers yourself.
void main()
{float d;
long p;
clrscr();
printf("Enter your taka:");
scanf("%f",&d);
p=d*100;
printf("\n\n%f Taka = %ld Paisa",d,p);
getch();
}
Decimal to Paisa
Posted by Bijon Labels: ansi c balagurusamy, ansi c balaguruswamy, ansi c by balagurusamy, problem solutions, program solution, program solutions, programming, programming analysis, programming answers
Subscribe to:
Post Comments (Atom)


0 comments
Post a Comment