I guess I would let n = 0 and y = 0
then I would say n = n+1
y = 12 * n
if y > 30 go to the end immediately and stop
then I would store and print y
go back to that n = n+1
stop and end
how to write c++ program to compute to display natural number between 1 and 30 which are divisible by 12
1 answer