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
Explain continue keyword in c
How do I create a directory? How do I remove a directory (and its contents)?
What are the key features in c programming language?
What is use of pointer?
Explain what is the difference between text files and binary files?
What is identifiers in c with examples?
Write a program to generate the Fibinocci Series
what is the role you expect in software industry?
What is a newline escape sequence?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Discuss the function of conditional operator, size of operator and comma operator with examples.
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What does c mean before a date?
What is the difference between procedural and declarative language?
what value is returned to operating system after program execution?