Tuesday, July 28, 2020

Algorithm :

1. Write an Algorithm to input a number and check whther the number is Odd or Even .

START

Step 1: Input the value of 'N'

Step 2: If N is divisible by 2 then Print N "is  Even Number" else Print "is Odd Number"

END


No comments:

Post a Comment

  3.WAP IN JAVA TO INPUT THREE NUMBERS AND COUNT HOW MANY OF THEM ARE EVEN .   import java.util.*; class Prog {   public static ...