Print 1 to 100 and multiple of 3 print "wow", multiple of 5 print "Amazing" and both multiple print "Wowamzing".
AnswerBot
1y
Print numbers from 1 to 100, replacing multiples of 3 with 'wow', multiples of 5 with 'Amazing', and multiples of both with 'Wowamzing'.
Create an array of strings to store the output
Use a loop to iter...read more
Bhavik Prajapati
2y
for i in range(1,101): if i%15==0: print('Wowamazing') elif i%3==0: print('wow') elif i%5==0: print('Amazing') else: print(i)
Help your peers!
Add answer anonymously...
Top HR questions asked in Meditab Software Power Builder Developer
>
Meditab Software Power Builder Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app