Write a java program to display first seven odd numbers using a 'while' loop.
Answers
Answered by
1
Answer:
Using Java for Loop
public class DisplayOddNumbersExample1.
{
public static void main(String args[])
{
int number=100;
System.out.print("List of odd numbers from 1 to "+number+": ");
for (int i=1; i<=number; i++)
{
Step-by-step explanation:
please mark me as brainlist
Answered by
0
Step-by-step explanation:
please mark me as brainlisr
Similar questions
Math,
2 months ago
Math,
2 months ago
Computer Science,
5 months ago
Science,
5 months ago
Social Sciences,
11 months ago