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
Why enum is used in c?
How are pointers declared in c?
What do you mean by keywords in c?
What is getch () for?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
p*=(++q)++*--p when p=q=1 while(q<=6)
What is file in c preprocessor?
What is methods in c?
What are the advantages and disadvantages of c language?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is difference between far and near pointers?
Why do we need functions in c?
What is signed and unsigned?
What is the difference between #include and #include 'file' ?
#include