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 equivalent to ++i+++j?
given post order,in order construct the corresponding binary tree
What is union and structure in c?
what is the syallabus of computer science students in group- 1?
what is the function of pragma directive in c?
How can you increase the size of a dynamically allocated array?
What do you mean by keywords in c?
Explain union.
What are header files in c?
Is using exit() the same as using return?
write a programming in c to find the sum of all elements in an array through function.
Why shouldn’t I start variable names with underscores?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Explain the term printf() and scanf() used in c language?
What are near, far and huge pointers?