for example user gives input as " 20 or 20.0 or rs 20.0 or
20.00 or rs20 and so .. on " and the output should be
stored as " rs.20.00 " in a variable

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
float i;
printf("enter the value :");
scanf("%f",&i);
printf("the output is : %f",i);
getch();
}

thank u. please make ur question more clear

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static and volatile in c?

873


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1691


What is property type c?

710


What is a pointer on a pointer in c programming language?

722


what does static variable mean?

745






When is a void pointer used?

766


Explain that why C is procedural?

755


code for replace tabs with equivalent number of blanks

1758


What is a wrapper function in c?

698


Why doesnt the call scanf work?

783


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

720


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2822


How do I round numbers?

689


What is const volatile variable in c?

671


i have a written test for microland please give me test pattern

2301