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 will be the outcome of the following conditional statement if the value of variable s is 10?

0 Answers  


wat is the meaning of c?

9 Answers   CTS, IBM, Wipro,


What is the difference between int main and void main?

0 Answers  


how to find sum of 5 digits in C?

4 Answers  


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

0 Answers   Infosys,






Why is c called c?

0 Answers  


Tell me the use of bit field in c language?

0 Answers  


#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}

3 Answers  


What is the output of following program ? int main() { int x = 5; printf("%d %d %d\n", x, x << 2, x >> 2); }

5 Answers   Amazon, Qualcomm,


what is the diffrenet bettwen HTTP and internet protocol

0 Answers  


Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

2 Answers   TCS,


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

0 Answers   MNC,


Categories