Computer Science, asked by Aarchi111, 1 year ago

hey mate

● pass any 3 integer number as a parameter and print the biggest (java class 9th icse program )

#AARCHI111


Aarchi111: nahi
pratikda: kab karogi
Aarchi111: yes what u want ???
Aarchi111: and who r u ??
pratikda: your full name
pratikda: i am partik
Aarchi111: ok
pratikda: tum konse class may hi
pratikda: ho
Aarchi111: 9th icse

Answers

Answered by Lazarus
1
class number
{
public static void main (int a, int b, int c)
{
if (a> b && a> c)
{
int temp=a;
}
elseif (b>a && b>c)
{
temp=b;
}
elseif ( c>a && c>b)
{
temp=c;
}
System.out.println("Biggest number is:"+temp);
}
}

HOPE YOU UNDERSTOOD MY ANSWER FRIEND! IF YOU DIDN'T THEN COMMENT BELOW!

Lazarus: ok..
Aarchi111: what is ur original pic bro
Lazarus: u don't need to see right now.you will see my pic a couple of months ..
Aarchi111: why ??
Lazarus: my wish...I ♡Sanam's songs a lot. .
Lazarus: So that's why. .
Lazarus: Bye. . no more comments please! !
Lazarus: Thanks aarchi for making me BRAINLIEST!
Aarchi111: welcome
Lazarus: Aarchi just listen in my ans at the end of else if , we have to use else Statement, I forgot to mention it but not too imp.
Answered by AnickRoy
0
import java.util.*;
class Biggest
{
public static void main(String args[])
{
scanner in=new scanner(System.in);
int a,b,c,max=0,min=0;
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
min=Math.max(a,b);
max=Math.max(min,c);
System.out.println(" "+max);
}
}
Similar questions