Print the Number of Odd and Even Numbers | Sum & Count of Even or Odd Numbers in an Array in Java

preview_player
Показать описание
#java #javatutorials #deepak #smartprogramming
📞 For more details Call or What's App : +91 98887-55565

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

#ArraysInJava #SingleDimensionalArray #MultiDimensionalArray #java #hindi #deepak #JavaTutorials #DeepakPanwar #OnlineTraining #OnlineClasses
Find the number which occurs odd number of times in an Array,
Java program to find odd or even number | Only for Beginners,
Program to Calculate the Sum of Even or Odd Numbers in an Array,
Print Even numbers, Sum & Count of Even and Odd & Smallest and Largest Number,
C Program to Print the Number of Odd and Even Numbers in an Array,
Program to calculate sum of all even and odd numbers in C,
Count Even and Odd numbers from 1 D array - Learn C Language Tutorials,
Sum of even elements and sum of odd elements of array C++ Program,
Check if a number is Even or Odd in Java (3 programs)- with Array and User Input also,
Java Loop Odd Sum, Even Sum,
C Program | Print Sum of Odd and Even Numbers from 1 to n | loop | Hindi

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

Follow Me On Social Media :-
Рекомендации по теме
Комментарии
Автор







▶ Core Java Chapter-wise Playlist ◀




▶Advance Java Chapter-wise Playlist ◀

SmartProgramming
Автор

Hi..
Your basic concept about programming are 2 good and I also like your teaching style 👌
Keep it up bro.

BeingHuman-dhnc
Автор

Excellent teaching.I don't know Hindi much. But the way you explain has helped me to learn Hindi and Java.

lisajomy
Автор

Sir you are the best teacher for me . Thank you Sir .🌹🌹🌹🌹🙏🏻🙏🏻🙏🏻

lkpramanik
Автор

If anyone don't know about collection then you can also try this:-

int [] a={2, 9, 3, 8, 4, 7, 5, 6, 10, 1};
int [] temp=new int[a.length];
int [] temp1=new int[a.length];
int sum=0;
int sum1=0;
for(int i = 0;i<a.length;i++){
if((a[i]%2)==0){
temp[i]=a[i];
sum=sum+1;

}
else{
temp1[i]=a[i];
sum1=sum1+1;
}
}

int [] odd=new int[sum];
int [] even=new int [sum1];
int j=0;
int k=0;
for(int i=0;i<temp.length;i++){
if(temp[i]!=0){
odd[j]=temp[i];

System.out.print(odd[j]+" ");
j++;
}

}
System.out.println();
for(int i=0;i<temp1.length;i++){
if(temp1[i]!=0){
even[k]=temp1[i];

System.out.print(even[k]+" ");
k++;

}
}

Xlielight
Автор

Hi Deepak, It would be great if you cal always attach the file code as a text file for all your videos.

secondly you should use a thin font which is not bold and reduce font size just 1 or 2 points so most of the code text fits nicely on one screen. this would help taking screenshots of full or at least 80% of code in one image. Thanks

majoromer
Автор

Thanks a lot sir ❤️ i could only understand computer just because of you

miiiza
Автор

As best as always !
Pls ! make a program on Combinations .

Wap to enter a string and print its combinations.
Ex- Top

Pot
Otp
Pto
Tpo
Top
Opt

amannishad
Автор

Your video was best, is best nd will be best

VivekKumar-vfig
Автор

Thank you very much bro.
Collection k videos kab upload hoge????

Technomeds
Автор

Thanks, Deepak
please add some more example

subhajitadhya
Автор

Hi Sir,
Please make a video on find out 2 or more missing numbers in array.
And how to delete folders and files using Java.

rickyjindal
Автор

Sir plz make some video on constructor.

soni
Автор

Given an Array {0, 2, 0, 7, 0, 9, 3} -> transfer all zeros to the end so output will be {2, 7, 9, 3, 0, 0, 0}

jonassx
Автор

Hiii sir plzz make a video on inheritance &interface concepts

sanjanasony
Автор

Sir, thank you for array pgm I need help in matrix pgm when you are going start matrix pgm. If you have easy and trusted links about topics then Sir please share that articles that will help me once again thank you Sir.

SudneshKeluskar
Автор

sir please make your video advance java j2ee java script

nagmabano
Автор

hii sir please upload vedeo of java Collection.

aaravsingh
Автор

sir aise kr skte h kya?

public class test

{
public static void main(String[] args)
{
int count=0, temp=0, j;
int a[]={2, 1, 6, 7, 4, 3, 8, 10};
for(int i=0;i<a.length;i++)
{
if(a[i]%2==0)
{
count++;
}
else if(a[i]%2>0)
{
temp++;
} }
System.out.println("no. of even elements even= "+ count);
System.out.println("no. of odd elements even= "+ temp);
System.out.print("sum of no. of even and odd elements ="+ (count+temp));
}}

techGenz-ko
Автор

Sir I need a multithreading and Java collections can u upload those videos

ayyappatellagorla
visit shbcf.ru