Core Java Programming Challenges #3 | Coding Challenges | Naresh IT

preview_player
Показать описание
Core Java Programming Challenges #3 | Coding Challenges | Naresh IT

💡 Also Watch

Java Programming Tutorials by Mr.Hari krishna:
Advanced Java Programming Tutorials by Mr.Nataraj:

Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.

💡 Visit Our Websites
#CoreJava_Programing #Challenges #CoreJava #Quiz
--------------------------

💡 About NareshIT:

"Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations

--------------------------

💡 Our Online Training Features:
🎈 Training with Real-Time Experts
🎈 Industry Specific Scenario’s
🎈 Flexible Timings
🎈 Soft Copy of Material
🎈 Share Videos of each and every session.

--------------------------

💡 Please write back to us at

--------------------------

💡 Check The Below Links

Рекомендации по теме
Комментарии
Автор

import java.util.Scanner;

public class Challenge3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter an Integer :- ");
int num = sc.nextInt();

if(num % 2 == 0) {
if(num <= 10 ) {
System.out.println("Hi");
}
if (num > 10 && num <=20) {

}
if (num > 20) {

}
}else {

}
}

}

karangorai
Автор

package practice;

import java.util.Scanner;

public class C1 {

public static void main(String args[])
{
int x;
Scanner sc = new Scanner(System.in);

x=sc.nextInt();

if(x%2==0)
{
System.out.println("hello");
}
else
{
if(0<x&&x<10)
{
System.out.println("hi");
}

if(10<x&&x<20)
{

}



}
}

}

baapofstock
Автор

class Example
{


public static void main(String[] args){
int n=20;
if(n%2==0){
if(n>=0&&n<=10){
System.out.println("hi");
}
else if(n>10&&n<=20){
System.out.println("hello");
}
else if(n>=20){
System.out.println("bye");
}

}
else {

}

}
}

akhilraj
Автор

import java.util.Scanner;

public class Text1 {
public static void main(String[] args) {
Scanner obj = new Scanner(System.in);
System.out.println("enter a number");
int x = obj.nextInt();
if(x % 2==0){
if(x > 0 && x< 10){
System.out.println("hi");
}
else if(x >= 10 && x < 20){
System.out.println("hello");
}
else if(x >= 20){
System.out.println("bye");
}

}
else{
System.out.println("number is odd");
}
}

virajovavenkata
Автор

public static void main(String[]args)
{
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();

if(a%2!=0)
{
System.out.println("Hello");
}
else if(a<=10)
{
System.out.println("Hi");
}
else if(a<=20)
{
System.out.println("Hello");
}
else {
System.out.println("Bye");
}
}

nishantraj
Автор

give code explanation on core java so that it is easy for us to solve program in java for beginner we dont want faq in core java

saravanakumaran
Автор

import java.util.*;
class Sample{
public static void main(String s[]){

Scanner sc=new Scanner(System.in);
int x=sc.nextInt();

if(x%2==1){
System.out.println("Hello");
}
else {
if(x>0 && x<=10)
System.out.println("Hi");
else if(x>10 && x<=20)
System.out.println("Hello");
else
System.out.println("Bye");
}
}
}

renukadevi
Автор

import java.util.*;
public class Challenge3
{
public static void main(String[] args)
{
System.out.println("Enter any number");
Scanner s1=new Scanner(System.in);
int a=s1.nextInt();
if(a%2==1)
{
System.out.println("this is odd ");
}
else
{
if(a%2==0)
{
System.out.println("this even");
}
if(a>0 && a<10)
{
System.out.println("Hi");
}
if(a>10 && a<20)
{
System.out.println("Hello");
}
if(a>20)
{
System.out.println("Again");
}

}
}
}

YashPavaskar
Автор

import java.util.Scanner;
public class PC3
{
public static void main(String[] args)
{
Scanner input=new Scanner(System.in);

int x=input.nextInt();

if(x%2==0)
{
if(x>=0 || x<10)
{
System.out.println("Hi");

}
else if(x>=10 || x<20)
{
System.out.println("Hello");

}
else
{
System.out.println("Bye");

}
}
else
{
System.out.println("Hello");
}
}

kundansahu
Автор

import java.util.Scanner;

public class Challenge03
{
public static void main(String[] args)
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter a positive number:");
int x=sc.nextInt();
if(x>0){
if(x%2==0){
System.out.println("Even number");
if(x>0&&x<=10){
System.out.println("Hi");
}

else if(x>10&&x<=20){
System.out.println("Hello");
}
if(x>20){
System.out.println("Bye");
}
}

else{
System.out.println("hello");
System.out.println("odd number");
}
}
else{
System.out.println("please enter a value greater than 0 to enter into test cases");
}

}

}

srinivasvenkata
Автор

import java.util.Scanner;
public class Challenge_03 {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);
System.out.println("enter a any number ");
int num =sc.nextInt();

if(num%2 != 0)
{

}
else
{
if(0 < num && 10 > num)
{

}
else if(10 < num && 20 > num)
{

}
else
{

}
}
}

}

pankajaklade
Автор

public class ScannerWithNestedIf{

public static void main(String args[]) {

int num;

Scanner scan = new Scanner(System.in);
System.out.println("enter a integer");
num =scan.nextInt();
if((num%2==0)) {

if(num>20) {
System.out.println("Bye" );

}
else if(num<=20 && num>10) {
);
}
else {
System.out.println("Hi" );
}

}
else{
);
}

}

}

jaisreeramprasad
Автор

import java.util.Scanner;
public class IfClass
{
public static void main(Stirng args[])
{
Scanner Scan=new Scanner(System.in);
int Number= Scan.nextInt();
if(Number%2!=0)
{
System.out.println("Hello");
}
else
{
if(Number>=0&&Number<=10)
{
System.out.println("Hi);
}
if(Number>10&&Number<=20)
{
System.out.println("Hello");
}
if(Number>20)
System.out.println("Bye");
}
}
}

jaimuruganantham
Автор

package p1;
import java.util.*;
import java.util.Scanner;
public class Challange3 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
try(s;){
try {
System.out.println("Enter the int value:");
int x = s.nextInt();
if(x%2!=0) {

}if(x%2==0) {
if(x>=0&&x<=10) {

}
if(x>10&&x<=20) {

}if(x>20){

}
}
ime) {
input...");
}
}// end of try with resources

}

}

vinaykoudagani
Автор

import java.util.*;
public class Main
{

public static void main(String[] args)
{
Scanner scn=new Scanner(System.in);
System.out.println("give a integer number");
int no=scn.nextInt();
if(no%2!=0){

}
else{
if(no>0 && no<10){

}
else if(no>10 &&no<20){

}else if(no>20){

}
}

}

}

jyotisankardas
Автор

public class Main
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
if(x % 2 != 0){

}else{
if(x >= 0 && x < 10){
System.out.println("Hi");
}

if(x >= 10 && x < 20){

}

if(x >= 20){

}
}
}

}

mdtausifiqbal
Автор

import java.util.Scanner;
class check
{public static void main(String [] args){
int n;
Scanner sc = new Scanner(System.in);
System.out.println("ENTER NUMBER ");
n = sc.nextInt();

if (n%2 == 0)
{ if (n>=0 && n<= 10)
{System.out.println("HI");
}
else if (n> 10 && n<=20)

}
else
{System.out.println("BYE");
}
}//outer if
else

}
}
}

shubhammahadik
Автор

import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner s1=new Scanner(System.in);
int x=s1.nextInt();
if(x%2==0)
{
System.out.println("Number is even");
if(x<=10)
{
System.out.println("Number is:"+x+"Hi");
}
else if(x>=10 && x<=20 )
{
System.out.println("Number is:"+x+"Hello");
}
else
{
System.out.println("Number is:"+x+"Bye");
}
}
else
System.out.println("Number is Odd");
}
}

jayant
Автор

import java.util.Scanner;

class Check {
public static void main(String[] args) {
System.out.println("Enter a number:");
Scanner sc = new Scanner(System.in);
int number = sc.nextInt();
sc.close();

if (number % 2 == 0) { // Check if number is even
if (number == 0 || number <= 10) {
System.out.println("i am even btw 0 - 10");
} else if (number <= 20) {
System.out.println("i am even btw 10 - 20");
} else if(number>20){
System.out.println("i am even more than 20");
}
} else {
System.out.println("I am odd");
}
}
}

psychogaming
Автор

import java.util.Scanner;

public class Cge3 {
public static void main(String[] args) {

Scanner sc = new Scanner(System.in);
int x = sc.nextInt();

if(x % 2 != 0) {
System.out.println("Hello");
}

else if(x % 2 == 0) {
if(x>=0 && x<10)
System.out.println("Hi");
else if(x>=10 && x<=20)
System.out.println("Hello);
else
System.out.println("Byee);
}
else
System.out.println("Please Enter a valid number");
}
}

kranjithkumar
welcome to shbcf.ru