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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What are logical errors and how does it differ from syntax errors?
where can function pointers be used?
what is C?
What does c mean?
How can I open a file so that other programs can update it at the same time?
write a program in c to read array check element is present or not?
wt is diference between int and int pointer as same as float and float pointer and char and char pointer
What does *p++ do?
Why doesnt long int work?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
c program to subtract between two numbers without using '-' sign and subtract function.
How to write a C program to determine the smallest among three nos using conditional operator?