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

How reliable are floating-point comparisons?

0 Answers  


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

0 Answers  


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

0 Answers   Case, IBM,


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

0 Answers  


What is the use of sizeof?

0 Answers  






can you explain in brief what is "r+" mode in a file... i know that it si used to read and modify rhe existing content.... but explalanation about the file pointer in "r+" mode i wann to know???????????

2 Answers   Cognizant,


write a program to find out prime number using sieve case?

0 Answers   HCL,


Do you know what is a programing language ?

0 Answers  


Is multithreading possible in c?

0 Answers  


What is the difference between procedural and declarative language?

0 Answers  


who is the father of c

4 Answers   Infosys,


how to copy a string without using c function

5 Answers  


Categories