Write a c++ program to receive one integer value 'num' from user such that the number is greater than 0 but less than 10. Then draw a triangle on screen such that there is one number in first row, two in second, three in third and so on in an increasing fashion until num rows are printed.
For example if the user inputs 5, the output pattern is:
1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here