write a program that readsin an integer number from the keyboard. If the number
ID: 3612553 • 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 atree of asterisks ('*') where the height of the triangle is equalto the number read from the keyboard. If the number is notbetween 1 and 10 (inclusive), the program terminates withoutprinting anything
Ex. Keyboardinput: 6
Output: *
***
*****
*******
*********
***********