Write a program in c++ to check weather the given no if even or odd....
Answers
Answered by
2
Answer:
import java.util.*;
class xuz;
{
public static void main( String[]args)
{
int x;
Scanner screen = new Scanner(System.in)
System.out.println("enter the no.");
x = sc. nextInt;
if( x%2==0)
System.out.println("even no.");
else
System.out.println("odd no.");
}
}
MARK MY ANSWER AS BRAINLIST
Similar questions