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



for example user gives input as " 20 or 20.0 or rs 20.0 or 20.00 or rs20 and so .. on " ..

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

for example user gives input as " 20 or 20.0 or rs 20.0 or 20.00 or rs20 and so .. on " ..

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

Post New Answer

More C Interview Questions

What are logical errors and how does it differ from syntax errors?

0 Answers  


where can function pointers be used?

2 Answers  


what is C?

9 Answers   Syntel,


What does c mean?

0 Answers  


How can I open a file so that other programs can update it at the same time?

0 Answers  






write a program in c to read array check element is present or not?

1 Answers  


wt is diference between int and int pointer as same as float and float pointer and char and char pointer

8 Answers   CTS, Infosys,


What does *p++ do?

0 Answers  


Why doesnt long int work?

0 Answers  


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

1 Answers   CMS,


c program to subtract between two numbers without using '-' sign and subtract function.

2 Answers  


How to write a C program to determine the smallest among three nos using conditional operator?

2 Answers   Google,


Categories