Horje
Java program to calculate cubic capacity cc in bikes Code Example
Java program to calculate cubic capacity cc in bikes
import java.util.Scanner;public class Main{public static void main(String[] args){Scanner sc = new Scanner(System.in);int cc = sc.nextInt();if(100>cc){System.out.println("Enter the large number");}if(100<=cc && 125>=cc){System.out.println(75);}if(126<=cc && 135>=cc){System.out.println(70);}if(136<=cc && 150>=cc){System.out.println(60);}if(151<=cc && 200>=cc){System.out.println(50);}if(201<=cc && 220>=cc){System.out.println(35);}if(cc>220){System.out.println("The number is very large");}}}
Source: inlarn.com




Java

Related
boolean parse jtextfield Code Example boolean parse jtextfield Code Example
Search a 2D Matrix II Code Example Search a 2D Matrix II Code Example
Square star pattern in java Code Example Square star pattern in java Code Example
Can we define package statement after import statement in java Code Example Can we define package statement after import statement in java Code Example
empty map entry java Code Example empty map entry java Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8