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
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 |
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 |
write a c program to calculate the income tax of the employees in an organization where the conditions are given as. (I.T. = 0 if income <100000 I.T = 10% if income _< 200000 it = 20% if income >_ 200000)
7 Answers Consultancy, DBU, FD, JK Associates, Kobe, Satyam,
Write a program to produce the following output in c language? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
What is the equivalent code of the following statement in WHILE LOOP format?
what is pointer
What is NULL pointer?
what is the output? #define fun(a,b,t) (g ##t=(a),(a)=(b),(b)=g##t) float gfloat; main() { float a=1.12,b=3.14; fun (a,b,float); printf("na=%4.2f,b=%4.2f",a,b); } A)Error in Defining Macro B)a=1.12,b=3.14 C)a=3.14,b=1.12 D)None of the Above
3 Answers Accenture, Infosys, Wipro,
can any one tell that i have a variable which is declared as static but i want this variable to be visible to the other files? how?
Can math operations be performed on a void pointer?
Reverse the part of the number which is present from position i to j. Print the new number.[without using the array] eg: num=789876 i=2 j=5 778986
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
What are disadvantages of C language.