Monday, 6 January 2020

HAY THANK FOR VISIT
TODAY I AM GIVING A SMALL PROGRAM FOR CHECKING THE GRATEST AMONG TWO NUMBERS.

<<<<<<<<<<<HAY THERE LETS START>>>>>>>>>
QUESTION :-Write  a program to  read two numbers and find the gratest number.

class abc
{
    void main(int a,int b)
    {
        if(a>b)
        System.out.println("the grater no is"+a);
        else
        System.out.println("the greater no is"+b);
    }
}

No comments:

Post a Comment

HAY THAKYOU FOE VISIT

Program(python):-Find duplicates in an array (Geeks for geek problem)

QUESTION:- Given an array  a  of size  N  which contains elements from  0  to  N-1 , you need to find all the elements occurring more than o...