Write a program to find sum of odd and even numbers from 1-100
Answers
Answered by
5
Answer:
Here is the chart of odd and even no. upto 100...
Explanation:
I hope it helps you please mark me as brainlist and follow...
Attachments:
Answered by
1
import java.util.*;
public class numbers
{
public static void show ( )
{
Scanner sc = new scanner (System.in);
int a,b
System.out.println ( "Enter first number");
a = sc.next int ( )
System.out.println ("Enter second number");
b = sc.next int ( )
if (a < 1);
System.out.println (" Number is odd ");
else
if (b < 100);
System.out.println ( " Number is even");
} }
Similar questions