Tuesday, February 18

Finding Biggest Number among Three Numbers in Java



Hi ALL,

Here I wrote a program for Finding Biggest Number among Three Numbers  in java.


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Balamurgan M
 */
import java.util.Scanner;
public class GraterNum {
    public static void main(String arg[]){
        System.out.println("Enter the I J K value " );
        Scanner in=new Scanner(System.in);
       
        int i=in.nextInt();
        int j=in.nextInt();
        int k=in.nextInt();
     if(i>j)
         if(i>k)
                System.out.println(" I is greatest value "+ i);
         else
                System.out.println(" K is Greatest Value "+ k);
     else
           System.out.println(" J is Greatest Value "+ j);
    }
}

No comments:

Post a Comment

Backup files to google drive using PHP coding

 Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...