Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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");}}}
Comment

PREVIOUS NEXT
Code Example
Java :: draw an icon in between swiped area android 
Java :: how can i press a key using action class i java ? 
Java :: how to add element in java arraylit syntax in gfg 
Java :: how to reorder numbers in a list randomly in java 
Java :: instance field java 
Java :: okhttp Sending and Receiving Network Requests 3 21 
Java :: fibonancci using dynamic programming in java 
Java :: fix intellij resetting the java version everytime you add a dependency 
Java :: run jar with logback config file 
Java :: Provide an ADT java class for one-dimension arrays named “MyArray” 
Java :: index out of bounds exception java 
Java :: activity show 1 time in android studio java 2022 
Java :: error attribute fabattached not found 
Java :: circular roation continous in android 
Java :: Labeled continue Statement Java 
Java :: generate infinity steam java 
Java :: how good at you are at java 
Java :: Double matrix 
Java :: Java extract string between two strings 
Java :: Copying Arrays Using arraycopy() method Java 
Java :: scrollbar in textarea java 
Java :: The JAVA_HOME environment variable is not defined correctly, this environment variable is needed to run this program. 
Java :: java.lang.stringindexoutofboundsexception: string index out of range: 10 
Java :: Get the number of weeks between two dates 
Java :: how to create a boolean list in java 
Java :: java format double no decimal places 
Java :: java swing tablecellrenderer 
Java :: Simple Write a simple Java program that prints a staircase or a figure as show 
Sql :: delete all nodes neo4j 
Sql :: mysql status 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =