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 |
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What is keyword with example?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Explain how do you generate random numbers in c?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Tell us the use of fflush() function in c language?
Write a c program to demonstrate character and string constants?
Why is the code below functioning. According to me it MUST NOT.
What is a stream?
How can I implement a delay, or time a users response, with sub-second resolution?
What is the scope of static variables in c language?
how many argument we can pas in in a function