#write a program that reads an integer and prints hello as many times as #input integer. Check validity of the inpput #Input: num = int(input("enter number of times to print hello ")) if(num > 0): #to print hello num times we need to use loop while counter = 0 while(counter < num): print("hello") counter=counter+1 else: print("invalid input")