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
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Do you know what are the properties of union in c?
Write a program that accept anumber in words
Explain modulus operator.
Write a program to reverse a string.
What is function pointer c?
Can true be a variable name in c?
What is clrscr in c?
What is assert and when would I use it?
How is a macro different from a function?
What is the difference between abs() and fabs() functions?
In a switch statement, explain what will happen if a break statement is omitted?
What is dangling pointer in c?
Is it possible to pass an entire structure to functions?