18 | Java Program To Print Sum Of Even Numbers From 1 to 10 | Java For Loop

preview_player
Показать описание
Preparing for the java interview or exam? Checkout my color-coded Java Revision Book that is specially designed for refreshing java concepts

Don't be a stranger '-'

Connect with me on the below platforms.

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

Perfect one that I was searching..thanx 👍

utkarshapagar
Автор

int res=0;
for(int i=2;i<=10;i+=2)
{
res=res+i;

}
System.out.println(res);
}

}

meghanasugandachar
Автор

Nice teaching...thank you sir..
Int sum=0;
For ( int i=1: i<=10; i++){
If(i%==0){
Sum= sum+I;
}
System.out.println(sum)
}
}

amdocssharma
Автор

Bro can u help me to find odd number from 1to20

sultanahmad
Автор

For no. 20 to 40 ?
Can this range is possible?

R.K_