“Comments are useful and easy way to enhance readability and understand-ability of a program.” Elaborate with examples.

Q18. “Comments are useful and easy way to enhance readability and understand-ability of a program.” Elaborate with examples. Ans. Comments are

Read more

C++ program to print ASCII code for given digit and backspace.

Q28. Write a program to print ASCII code for a given digit. print ASCII code for backspace. (Hint: Store escape

Read more

C++ program to read two numbers and print quotient and remainder.

Q26. Write a program to read two numbers and print their quotient and remainder. Ans. #include<iostream.h> #include<conio.h>  //for clrscr()  

Read more

C++ program to convert inches into yards, feet and inches.

Q25. Write a program to convert given inches into its equivalent yards, feet and inches. (1 yard = 36 inches,

Read more

C++ program to accept three digits (that is, 0-9) and print all possible combinations.

Q24. Write a program to accept three digits (that is, 0-9) and print all possible combinations from these digits. (For

Read more