java program to calculate cubic capacity cc in bikes

Solutions on MaxInterview for java program to calculate cubic capacity cc in bikes by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "java program to calculate cubic capacity cc in bikes"
Louisa
28 Feb 2017
1import 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");}}}
similar questions