computer questions class 9
java
Q1) write a programme to find out of the greatest of two numbers
Answers
Answered by
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
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
Answered by
0
hope this helped you.mark my answer as brainliest
Attachments:
Similar questions