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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do shell structures work?

557


Write a program to implement queue.

651


Why pointers are used?

623


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

1563


Explain what happens if you free a pointer twice?

601






Differentiate between the = symbol and == symbol?

696


What is an operator?

649


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7378


Explain what is the benefit of using enum to declare a constant?

575


What are actual arguments?

637


cavium networks written test pattern ..

3580


What is malloc return c?

588


Which is an example of a structural homology?

766


Write a program for Overriding.

669


What is C language ?

1517