C++ Questions and Answers
Basic Programs
Q. Write a program to print "Hello Word".
Q. Write a C++ program to print the following output using for loop.
1
2 2
3 3 3
4 4 4 4.
Q. Write a C++ program to find out the factorial of a number using while loop.
Q. Write a C++ program to reverse a number using do-while loop.
No comments:
Post a Comment