Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 structure types in C?

0 Answers  


write a program to generate 1st n fibonacci prime number

2 Answers  


What is a segmentation fault?

2 Answers  


What is character constants?

0 Answers  


What is the difference between pure virtual function and virtual function?

0 Answers  


How would you use the functions fseek(), freed(), fwrite() and ftell()?

0 Answers   Aspire, Infogain, TISL,


What's the difference between calloc() and malloc()?

4 Answers  


Write a c program to sort six numbers and find the largest one by using the ladder of if-else? plz do help me

2 Answers  


progrem to generate the following series 1 12 123 1234 12345

6 Answers   HCL, Wipro,


What is the difference between functions abs() and fabs()?

0 Answers  


What is pointers in c with example?

0 Answers  


What is the need of structure in c?

0 Answers  


Categories