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
What is static and volatile in c?
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"
What is property type c?
What is a pointer on a pointer in c programming language?
what does static variable mean?
When is a void pointer used?
Explain that why C is procedural?
code for replace tabs with equivalent number of blanks
What is a wrapper function in c?
Why doesnt the call scanf work?
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
write a c program to calculate sum of digits till it reduces to a single digit using recursion
How do I round numbers?
What is const volatile variable in c?
i have a written test for microland please give me test pattern