Find the greatest of two number in JAVA with flowchart.


Flow chart:-















 







Code :-

public class first {
public static void main(String arg[])
{
int a=5;
int b=6;
if(a>b)
{
System.out.println("a is gerater");
}
else
{
System.out.println("b is greater");
}
}



Output:-








If you have any problems then contact us in  our 

Whatsapp group :-Join  Click join to join our group.

Join our Facebook group:- Join Click join to join our group.






No comments:

Post a Comment

theengineerschoice01@gmail.com