QUEST INNOVATIVE SOLUTIONS
● Print all even numbers from 2 to 50.
● Print all odd numbers from 1 to 50.
● Print the first 10 multiples of 3.
● Print the first 10 multiples of 5 in reverse order.
● Print all numbers divisible by 4 between 1 and 100.
● Print the sum of numbers from 1 to 50.
● Print the sum of even numbers and sum of odd numbers
from 1 to 50.
● Print numbers from 1 to 50 that are divisible by both 2 and 5.
● Print squares of numbers from 1 to 10.
● Print cubes of numbers from 1 to 10.
● Print all numbers from 1 to 100 that are divisible by 7.
● Print numbers from 50 to 1 that are divisible by 3.
● Print the sum of squares of numbers from 1 to 10.
● Print the sum of cubes of numbers from 1 to 5.
● Print numbers from 1 to 20 along with their square roots (use
float).
● Print the first 10 even numbers and their half values.
● Print numbers from 10 to 30, but skip numbers divisible by 4.
● Print numbers from 1 to 15; if divisible by 2 print square, if
divisible by 3 print cube.
● Print all odd numbers from 1 to 99 and calculate their average.
● Print numbers from 1 to 10; if number is even multiply by 2, if
odd multiply by 3.
● Print numbers from 1 to 20; if divisible by 2 subtract 1, if
divisible by 3 multiply 3, else add 1.
● Print numbers from 1 to 20; if divisible by 2 print half the
number, else print double the number.
● Print numbers from 1 to 10; for each number, print its square if
even and cube if odd