Computer Science, asked by umairahmedshaikh26, 8 months ago

Write a program in c++ to check weather the given no if even or odd.... ​

Answers

Answered by shouryapratapsingh
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