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 equivalent to ++i+++j?

850


given post order,in order construct the corresponding binary tree

2532


What is union and structure in c?

852


what is the syallabus of computer science students in group- 1?

2056


what is the function of pragma directive in c?

875


How can you increase the size of a dynamically allocated array?

905


What do you mean by keywords in c?

884


Explain union.

898


What are header files in c?

807


Is using exit() the same as using return?

921


write a programming in c to find the sum of all elements in an array through function.

1915


Why shouldn’t I start variable names with underscores?

833


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

801


Explain the term printf() and scanf() used in c language?

815


What are near, far and huge pointers?

837