int age=35;
if(age>80)
{Console.WriteLine("Boy you are old");}
else
{Console.WrieLine("That is a good age");}
Answer / Abhishek Duhan
This C++ code defines an integer variable named 'age' with the value 35, and checks whether the age is greater than 80 using the if condition. If the condition is true, it prints the string "Boy you are old". Otherwise, it prints the string "That is a good age".
| Is This Answer Correct ? | 0 Yes | 0 No |
What are inline functions?
What is a c++ class?
Why do we use iterators?
what are the iterator and generic algorithms.
What is endl c++?
show that among any group of five (not necessary consecutive ) integers, there are two with the same remainder when divided by 4.
What are the 2 main types of data structures?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
Why pointer is used in c++?
Adobe Interview & Adobe Placement Paper
Write a program using merge () function to combine the elements of array x[ ] and y[ ] into array z[ ].
Are there any special rules about inlining?