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



main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&a..

Answer / rohit kakade

this pgm has error because height is not defined in the main()

Is This Answer Correct ?    1 Yes 0 No

main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&a..

Answer / ajay

out is same ,so programmer write the other message in else part ,

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a Program to find whether the given number or string is palindrome.

0 Answers   InterGraph,


What is void main () in c?

0 Answers  


Why static variable is used in c?

0 Answers  


size maximum allocated by calloc()

3 Answers   DELL,


How can you draw circles in C?

0 Answers   Accenture,






What are the 5 data types?

0 Answers  


Which header file is essential for using strcmp function?

0 Answers  


Where we use clrscr in c?

0 Answers  


What is actual argument?

0 Answers  


how to set Nth bit of variable by using MACRO

3 Answers   HCL,


What is clrscr ()?

0 Answers  


2. Counting in Lojban, an artificial language developed over the last fourty years, is easier than in most languages The numbers from zero to nine are: 0 no 1 pa 2 re 3 ci 4 vo 5 mk 6 xa 7 ze 8 bi 9 so Larger numbers are created by gluing the digit togather. For Examle 123 is pareci Write a program that reads in a lojban string(representing a no less than or equal to 1,000,000) and output it in numbers.

3 Answers   Nagarro,


Categories