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
Why should I prototype a function?
How can you convert integers to binary or hexadecimal?
How to define structures? ·
What are the types of macro formats?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
Explain what is the difference between null and nul?
What is pointers in c?
What is wrong with this statement? Myname = 'robin';
Difference between pass by reference and pass by value?
Is exit(status) truly equivalent to returning the same status from main?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What are the uses of null pointers?
Explain what standard functions are available to manipulate strings?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
What are type modifiers in c?