Write a program that readsin an integer number from the keyboard. If the number
ID: 3612538 • Letter: W
Question
Write a program that readsin an integer number from the keyboard. If the number isbetween 1 and 10 (inclusive), the program prints on the monitor aright-triangle of asterisks ('*') where the height of the triangleis equal to the number read from the keyboard. If the numberis not between 1 and 10 (inclusive), the program terminates withoutprinting anything.
Ex. Keyboard input: 6
Output *
****
*****
******