c program to print odd number from 1 to N using while loop
Answers
Answered by
2
Answer:
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++)
{
Explanation:
Similar questions
English,
2 months ago
Math,
2 months ago
Hindi,
2 months ago
Political Science,
4 months ago
Accountancy,
4 months ago
Math,
10 months ago
English,
10 months ago