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 / aditya
#include<stdio.h>
#include<conio.h>
void main()
{
string ss;
printf("enter the value :");
scanf("%s",&ss);
printf("the output is : %s",ss);
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Sir i need notes for structure,functions,pointers in c language can you help me please
How can I remove the trailing spaces from a string?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is difference between far and near pointers?
Explain the use of function toupper() with and example code?
How is null defined in c?
Explain what is the general form of a c program?
How can I read and write comma-delimited text?
What are local static variables? How can you use them?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Mention four important string handling functions in c languages .
What is nested structure?
What's a good way to check for "close enough" floating-point equality?
What are different types of variables in c?
How is a structure member accessed?