main()
{
int age;
float ht;
printf("Enter height and age");
scanf("%d%d",&height,&age);
if((age<=20)&&(ht>=5))
{printf("She loves you");}
else
{printf("She loves you");}
}
Answers were Sorted based on User's Feedback
Answer / rohit kakade
this pgm has error because height is not defined in the main()
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ajay
out is same ,so programmer write the other message in else part ,
| Is This Answer Correct ? | 0 Yes | 0 No |
Why is c so powerful?
What is a macro in c preprocessor?
What is the difference between pure virtual function and virtual function?
What does it mean when a pointer is used in an if statement?
What does main () mean in c?
What are global variables?
Write a program in c to print 1 121 12321 1234321 123454321
11 Answers ANR, College School Exams Tests, Mu Sigma, Wipro,
What is the right way to use errno?
Explain modulus operator. What are the restrictions of a modulus operator?
How can you convert integers to binary or hexadecimal?
C passes By value or By reference?
5 Answers Geometric Software, Infosys,
What is extern storage class in c?