Computer Science, asked by gkrohith73, 5 months ago

Through the use of a “for” loop show all odd numbers on a web page between 0
to 100.
 with the aid of a “for” loop generate the subsequent pattern.

Answers

Answered by ameen8086
0

Answer:

The for loop is used when you know in advance how many times the script should run. ... Variable( $sum ) holds value(0). For( ) loop ... Find all odd numbers between 1 to 100 using loop.

Explanation:

Hope it is helpful to you

PLEASE mark me BRAINLIST okay

Answered by Anonymous
4

Logic to print even numbers using if condition

Input upper limit to the even numbers from user. Store it in some variable say N .

Run a loop from 1 , that runs till N , increment the loop counter by 1 in each iteration. ...

Inside the loop body check even/odd condition.

Similar questions