public class hello { public static void main(String[] args){ System.out.print("Enter a Number:"); Scanner num =new Scanner(System.in); int a=num.nextInt(); if(a%2==0){ System.out.print("Even Number"); } else { System.out.print("Odd Number"); } }
import java.util.Scanner; class eveodd{ public static void main(String args[]) { Scanner eveodd= new Scanner(System.in); int num = eveodd.nextInt(); if(num%2==0) { System.out.print("num is even"); } else{ System.out.print("num is odd"); } } }
import java.util.Scanner; class hello{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int num =scan.nextInt(); int num1 = num%2;
import java.util.Scanner; class hello{ public static void main(String args[]) { Scanner Scan = new Scanner(System.in); int a = Scan.nextInt(); if(a%2==0) { System.out.print("it is even"); } else { System.out.print("it is odd"); }
import java.util.Scanner; class numbers { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); if (a%3 == 0 && a%5 == 0) { System.out.println("the given number "+a +" is divisible by 3"); System.out.println("the given number "+a +" is divisible by 5"); } else { System.out.println("the given number "+a +" is not divisible by 3"); System.out.println("the given number "+a +" is not divisible by 5"); } } }
Bro Your Teaching is very well. Your videos (html,css,javascript,mysql,linkedin,github) now java series And I am still learning.🙏🙏🙏
Anna pls daily video upload pannunga
Cover java generics, collection, threading, arrays concepts, and finally DSA important anna PLEASEEEEEEEEE
Class name{
Public static void main(String args[])
{
Int num = 14;
If(num%2==0)
{
System.out.print("even");
}
else
{
System.out.print("odd");
}
}
}
Output:
Even
Advance 600k family 💥
for the very first problem we can also put >= 35
Yeah but why doesn't he tell that
iam using the scanner for the last task very helpfull for me thankyou so much bro
import java.lang.System;
import java.util.Scanner;
class Q4_02{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
System.out.print("Enter num:");
int num = scan.nextInt();
if(num%2==0){
System.out.println("Even");
}
else{
System.out.println("Odd");
}
}
}
Mark >=35 potu panalam la anna
nanum apdi poten bro podalam
Scanner sc = new scanner(system.in);
Int num = sc.next int;
If(num%2 ==0){
System.out.println(“even”)
Else:{
System.out.println(“odd”)
}
Import java. util. Scanner;
Class hello{
Public static void main(String args[]){
Int num =25;
If(num%2==0){
System. Out. Println("even");
}
Else{
System. Out. Println("odd");
}
}
}
Bro nee solrathuku munnadiye kadasi code potuten😂🔥
Yeah, I wrote program for qn4 by own.. Bro really your teaching is well
Bro Neega podura video ennaku romba useful iruku Thanks bro🙏❤
even or odd program successfully completed
It is effective to learn coding with your video bro
Completed..
complete anna🤗 it's very useful for me Anna I'm third year student it's make to learn quickly anna
find even or odd number succesfully completed
na nenga sonna ela task panna even last task very helpfull thank you anna
Anna Odd or even program poten
Output crt aa vanthuruchu 😎😎
program completed
Bro last la sonna program try panniten ❤
public class hello {
public static void main(String[] args){
System.out.print("Enter a Number:");
Scanner num =new Scanner(System.in);
int a=num.nextInt();
if(a%2==0){
System.out.print("Even Number");
}
else
{
System.out.print("Odd Number");
}
}
Bro ppt epdi bro edukuradhu link la available ah irukum nu soninga
Pro even number and odd number output successfully completed
import java.util.Scanner;
class main{
public static void main(String args[])
{
Scanner scan=new Scanner(System.in);
int num=scan.nextInt();
if(num%2 == 0 || num%3 == 0)
{
System.out.print("even");
}
else{
System.out.print("odd");
}
}
}
Thank you so much broo for your teaching is very good
I did❤️
Bro vera mari bro ni...
Always welcome.
Finding the given number is odd number or even number is done bro❤❤❤
import java.util.Scanner;
class demo
{
public static void main(String args[])
{
Scanner S = new Scanner(System.in);
System.out.print("Enter any number: ");
int num=S.nextInt();
if (num%2 == 0)
{
System.out.print(num+" "+"it's even");
}
else
{
System.out.print(num+" "+"it's odd");
}}}
import java.util.Scanner;
class demo{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
int mark = scan.nextInt();
if(mark%2==0)
{
System.out.print(mark+" "+"is even number");
}
else
{
System.out.print(mark+" "+"is odd number");
}
}
}
import java.util.Scanner;
class eveodd{
public static void main(String args[])
{
Scanner eveodd= new Scanner(System.in);
int num = eveodd.nextInt();
if(num%2==0)
{
System.out.print("num is even");
}
else{
System.out.print("num is odd");
}
}
}
Successfully competed
I completed the last coding bro
Bro Anwar vanthuruchu
Thank you 🙏🏻
compeleted anna
import java.util.Scanner;
class hello{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int num =scan.nextInt();
int num1 = num%2;
if(num1>0)
{
System.out.println("Odd number");
}
else{
System.out.println("Even number");
}
}
}
Thanks bro 😊
Executed successful bro
import java.util.Scanner;
class hello{
public static void main(String args[])
{
Scanner Scan = new Scanner(System.in);
int a = Scan.nextInt();
if(a%2==0)
{
System.out.print("it is even");
}
else
{
System.out.print("it is odd");
}
}
Naney pottutten na❤ antha last one🎉
import java.util.Scanner;
class hari{
public static void main (String []args){
Scanner scan=new Scanner (System.in);
int value=scan.nextInt();
if(value %2==0)
{
System.out.print("Even Number");
}else{
System.out.print("Odd Number");
}
}
}
Sir >= 35 nu change pannalum pass nu thaaneh varum
Yes
Digital marketing course start panunga bro
import java.util.Scanner;
import java.lang.System;
class hello{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int num1=sc.nextInt();
if(num1%2==0){
System.out.println("even");}
else{
System.out.println("odd");
}
sc.close();
}
}
bro in 22:54 , i guess you have used And operator instead of OR operator
for odd or even we can use either one of these: num==0,num!=1,num==1,num!=0 as per true false.....apart from this any other ways ?
Last program complete bro 🎉
import java.util.Scanner;
class numbers
{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
if (a%3 == 0 && a%5 == 0)
{
System.out.println("the given number "+a +" is divisible by 3");
System.out.println("the given number "+a +" is divisible by 5");
}
else
{
System.out.println("the given number "+a +" is not divisible by 3");
System.out.println("the given number "+a +" is not divisible by 5");
}
}
}
Hi John notes link is not opening getting 404 error kindly check & reload .Thanks
int mark = 35;
if(mark>=35){
System.out.println("pass");
}
else{
System.out.println("fail");
}
output:pass
ipdi kuduthalum pass thaney varum bro??
Mm ama bro
done bro completed
program completed 👍
import java.util.Scanner;
class check{
public static void main(String args[])
{
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
if (a%2 == 0 && a%2 != 0)
{
System.out.println("prime nunmber");
}
else{
System.out.print("odd number");
}
}
}
public class even
{
public static void main(String[]args)
{
System.out.println((12%2==0)?"even":"odd");
}
}
Super na😊
Thanks!
Anna project download pannurathuku oru nalla website sollunga Anna Please.
done anna
💯
nov mass na nee😮💨😮💨😮💨
Ys done🤩
Anna python programming data science pathe nariya video panuga na
complete
done bro
completed
completed bro
Done bro
i do it brother
Hi anna
Done ✔️
>= use pannalame brother
odd number even number enakku vandhuruchu bro
1000th like
Odd or Even number program potten output vanthuruchu
linux tutorial podunga anna
bro next podungaa bro
18:56
Bro i get the answer
❤
Doneyy👍
Hi sir
Python project ideas
not able to download the ppt
Bro last question na scanner la code print pana correct or wrong
Program odd or even complete bro 😊😊😊
DSA tech pannuga bro
Yes!!
Bro one help please
Three js tutorial podamudiuma bro
Done.....😁
Thaala unnoda notes download pana mudiyala error katuthu
completed #Man Bye bye 👋
Anna ppt? 😢 4:03
Code potutan
🙏❤🩹
done bro
Done ✅