Computer Science, asked by rahul733, 1 year ago

computer questions class 9
java

Q1) write a programme to find out of the greatest of two numbers

Answers

Answered by Anonymous
0
//This program is to find the greater number from two numbers
class Big_number
{
public void accept(int a,int b)
{
int max=0;
if(a>b)
max=a;
else
max=b;
System.out.println("the greater number is"+max);
}
}

Here variable a and b for taking two numbers from user
                       max for greater number


rahul733: hi bro
rahul733: will yu help me out in more questions
Anonymous: hello
Anonymous: i will try
rahul733: okh
Anonymous: thanks bro for marking me as brainliest
rahul733: msg me unbox plzz
rahul733: inbox
Anonymous: ok
Answered by uashenoy05
0
hope this helped you.mark my answer as brainliest
Attachments:

rahul733: hii
rahul733: will u help me out in more questions
uashenoy05: yeah sure
Similar questions