solve this Java programming
Q5.
Attachments:
Answers
Answered by
1
class Largest
{
public static void(int a,int b,int c)
{
int l = 0;
if(a>b&&a>c)
l = a;
else if(b>a&&b>c)
l = b;
else if(c>a&&c>b)
l = c;
System.out.println(“The largest number is”+l);
}}
Hope this helps! Please do follow me!
{
public static void(int a,int b,int c)
{
int l = 0;
if(a>b&&a>c)
l = a;
else if(b>a&&b>c)
l = b;
else if(c>a&&c>b)
l = c;
System.out.println(“The largest number is”+l);
}}
Hope this helps! Please do follow me!
Similar questions