import java.util.*;
import java.lang.*;
import java.io.*;
// The main method must be in a class named "Main".
class Main {
public static void main(String[] args) {
// System.out.println("Hello world!");
// BEGINNER CONTEST ||
//----------------------------------------------------------------------------------------------------------------------
// Q1. Take a decimal number N from user and print its integral part only.
// Scanner scn = new Scanner(System.in);
// double N = scn.nextDouble();
// int integral = (int)N;
// System.out.println(integral);
//----------------------------------------------------------------------------------------------------------------------
// Q2. Rahul bought a bike and now he has to bring it back for his first service.
// Condition for first service: odometer Reading > = 500 or time > = 3 months.
// Input value only integers.
// output : if condition is met, eligible for service - "Eligible for service", else "Not eligible for service"
// Scanner scn = new Scanner(System.in);
// int reading = scn.nextInt();
// int time = scn.nextInt();
// if(reading>=500 || time>=3){
// System.out.println("Eligible for service");
// }else {
// System.out.println("Not eligible for serivce");
// }
//----------------------------------------------------------------------------------------------------------------------
// Q3. Given subject name of a student and marks achieved in that subject.
// print statement as "Marks in SubjectName is MarksAchieve".
// where SubjectName and MarksAchieve is given from user.
// Constraints: 0 < marks < 1000
// Input format: First line take subjectname as input. second line take marks as input.
// Output format: "Marks in SubjectName is Marksachieve". SubjectName is single word.
// Scanner scn = new Scanner(System.in);
// String SubjectName = scn.next();
// int MarksAchieve = scn.nextInt();
// if(MarksAchieve>0&&MarksAchieve<=1000){
// System.out.print("Marks in " + SubjectName + " is " + MarksAchieve);
// }
//----------------------------------------------------------------------------------------------------------------------
// Q4. Permission or rejection for constructions based on the zone, height of construction is subject to zone category.
// 0 < = zone < = 1000 || input for zone as an integer ||
// output if permitted - "Maximum height possible for building is height meters"
// output if rejected - "Here construction is prohibited".
Scanner scn = new Scanner(System.in);
int zone = scn.nextInt();
// if(zone>0&&zone<=1000){
// if(zone>=1&&zone<=5){
// System.out.println("Maximum height possible for building is 30 meters");
// }else if(zone>=6&&zone<=10){
// System.out.println("Maximum height possible for building is 25 meters");
// }else if(zone>=11&&zone<=15){
// System.out.println("Maximum height possible for building is 20 meters");
// }else if(zone>=16&&zone<=20){
// System.out.println("Maximum height possible for building is 10 meters");
// }else{
// System.out.println("Here construction is prohibited");
// }
// }
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: