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 does %d do in c?
What is scope of variable in c?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
List some applications of c programming language?
What are the back slash character constants or escape sequence charactersavailable in c?
How can I ensure that integer arithmetic doesnt overflow?
will u please send me the placement papers to my mail???????????????????
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Write a program to print factorial of given number using recursion?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What is the newline escape sequence?
What are unions in c?
Tell us two differences between new () and malloc ()?
What is the meaning of typedef struct in c?