Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View krlakshmikanth's full-sized avatar
💭
Helping customers achieve their business goals done.

Lakshmikanth Rajamani krlakshmikanth

💭
Helping customers achieve their business goals done.
View GitHub Profile
@krlakshmikanth
krlakshmikanth / Main.java
Created March 30, 2017 12:57
Sort 3 Integers without using if condition. Examples Input : a = 3, b = 2, c = 9 Output : 2 3 9 Input : a = 4, b = 1, c = 9 Output : 1 4 9
import java.util.Scanner;
import java.lang.Math;
class Main {
public static void main(String[] args)
{
int a,b,c;
Scanner sc = new Scanner(System.in);
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
@krlakshmikanth
krlakshmikanth / Main.java
Created March 30, 2017 12:57
Sort 3 Integers without using if condition.
import java.util.Scanner;
import java.lang.Math;
class Main {
public static void main(String[] args)
{
int a,b,c;
Scanner sc = new Scanner(System.in);
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();