V.Vidhya Logo

V.Vidhya

for (loop) I


Q1.

Print all odd numbers between 1 and 15


Q2.

Print all even numbers between 2 and 30


Q3.

Write a program that takes two numbers as user input and then prints all the numbers between them.

Expected Output:

// for first number 3 and second number 11

// output
4
5
6
7
8
9
10

Prev Post
Array Cumulative
Next Post
for (loop) II