P25 - Looping statements (for) in Java | Core Java | Java Programming |

preview_player
Показать описание
In this video, I have explained about "Looping statements (for) in java".

Points covered in this video:
❇️ What is a looping statement?
❇️ Different types of looping statement in java
❇️ Syntax for for statement in java
❇️ Hands on experience with for statement in java

🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶🔶

===================================
===================================
Connect me @
===================================
===================================
🙏 Please Subscribe🔔 to start learning for FREE now, Also help your friends in learning the best by suggesting this channel.

#hyrtutorialstelugu #selenium #java #telugu
Java programming by Yadagiri Reddy
Рекомендации по теме
Комментарии
Автор

Dhinamma evaru babai nvu entha clear ga explain chestunav 🎉❤ thisko naa heart❤❤❤❤

mukeshnaidu
Автор

What a tutor You Are ❤️🔥 Man You are Not Just A YouTuber Ur a Mentor ...I will share few things about mine....One week back I'm fully depressed I joined a One institute but I missed some classes due to some health problems I'm fully confused how can I cover all those topics Now I'm only Two topics left to cover all those topics teached in there institute Man just Because Of You ❤️ I watched all Your topics without any skip now I can solve any problem they given..now I'm ready for arrays ..if you continue classes like this with few more assignments definitely we crack that Job ...Love You Bro ❤️

syedbasha
Автор

This tutorial deserves so many likes. I hope this channel reach the so many students who learn java.

Suguna
Автор

Anna mee explanations mundhu clgs, professors evvaru paniki raaru
Feelin' Lucky to find these videos

koushiksreemanthula
Автор

Yours videos are really wonderful. Nenu DSA java use chesi nerchukuntunnanu, so I know basics. But mee video choosinapudu inka konni kotha vi nerchukuntunna. Thank you sir.

himuhimaja
Автор

the way you explains is completely different, I have not seen anyone who teaches like you

shaikzakeer
Автор

Really chala great anna nenu ikkada fee pay chesi mari join aina coaching ki no use intha baga chepaledhu thank you somuch anna

saikrishnareddy
Автор

Thank you so much sir today I learned new things which were not taught before by any trainers.
That 1)variable can be initialized outside.
2)Condition and updation can be written inside the for loop.😄

chandrakanthvs
Автор

Thank you so much sir today I learned new things from for loop concept....


1. Printing the Values in given Range:

import java.util.Scanner;

public class Test1
{
public static void isValue(int n, int m)
{
for(int i=n;i<=m;i++)
{
System.out.println(i);
}
}
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the value of n: ");
int n = sc.nextInt();
System.out.print("Enter the value of m: ");
int m = sc.nextInt();
isValue(n, m);
}
}

2. Printing Even numbers in given range:

import java.util.Scanner;

public class Test2
{
public static void isEven(int n, int m)
{
for(int i=n;i<=m;i++)
{
if(i%2==0)
{
System.out.println(i);
}
}
}
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the value of n: ");
int n = sc.nextInt();
System.out.print("Enter the value of m: ");
int m = sc.nextInt();
isEven(n, m);
}
}

3. Divisble by 7:

import java.util.Scanner;

public class Test3
{
public static void isdivisible(int n, int m)
{
for(int i=n;i<=m;i++)
{
if(i%7==0)
{
System.out.println(i);
}
}
}
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the value of n: ");
int n = sc.nextInt();
System.out.print("Enter the value of m: ");
int m = sc.nextInt();
isdivisible(n, m);
}
}

4. Prime numbers in given Range:

import java.util.Scanner;

public class Test4
{
public static void isprime(int n, int m)
{
for(int i=n;i<=m;i++)
{
if(isPrimeNumber(i))
{
System.out.println(i);
}
}
}

public static boolean isPrimeNumber(int a)
{
if(a<=1)
{
return false;
}
for(int i=2;i<=Math.sqrt(a);i++)
{
if(a%2==0)
{
return false;
}
}
return true;
}

public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the value of n: ");
int n = sc.nextInt();
System.out.print("Enter the value of m: ");
int m = sc.nextInt();
isprime(n, m);
}
}

5. Sum of even Numbers:

import java.util.Scanner;

public class Test5
{
public static void isSum_even(int n, int m)
{
int s = 0;
for(int i=n;i<=m;i++)
{
if(i%2==0)
{
s+=i;
}
}
System.out.println("Sum of Even Numbers: "+s);
}
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the value of n: ");
int n = sc.nextInt();
System.out.print("Enter the value of m: ");
int m = sc.nextInt();
isSum_even(n, m);
}
}

6. Number given range in reverse order: -

import java.util.Scanner;

public class Test6
{
public static void isOddrange(int n, int m)
{
for(int i=n;i>=m;i--)
{
if(i%2!=0)
{
System.out.println(i);
}
}
}
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.print("Enter the value of n: ");
int n = sc.nextInt();
System.out.print("Enter the value of m: ");
int m = sc.nextInt();
isOddrange(n, m);
}
}

spiderman
Автор

Nenu evari videos kii max like and subscribe cheyyanu sir kani mee videos to notch wonderful explanation

bouidigitalvideos
Автор

No words for your support Bro, May God Bless you with all you want....

ranganathgadde
Автор

Hi Bro, i really understood everything from this video crisp and clear even about debugging but i really want you to do one video on "DEBUGGING"🙏🙏. Plz consider it, i know there are lot of other channels that explains it, but ur way of explaining keeps us entertained(like without skipping a second) and engaing😶‍🌫😶‍🌫. So guys, whoever want one video especially on "DEBUGGING" plz like this comment or comment as "YES" 🙏🙏so that he will make one video based on the number of people otherwise he might not consider . So, ur wish guys🙌 and sir even though there are no likes, please consider making a video of "DEBUGGING".🤗🤗

HSC-useb
Автор

Tq so much sirr. Chala clear ga explain chastunnaru.naku Java program medha idea ledhu kani chala clear ga ardham avuthundi .nenu own program koda try chastunnanu.

crazyrowdy
Автор

Watching in 2025 too...telugu lo vinte a feel a veru..thank you for explaining very clearly...👏👏👏

HelloWorld_MJ
Автор

thanks sir!!
you are only the one who explained every thing clear

A.Manohar
Автор

sir your explanation is understandable and so simple for telugu medium plz don't stop making the videos on java...plz do more videos...you have my support...plz give me reply sir...im commenting on your every video..just give me reply..otherwise you can provide paid course on java.its my request..if you provide free...we are getting more benefit

vasupotipireddi
Автор

Anna mee videos chala clearga ardhamouthunnayi anna..telegumedium chaduvkunna vaalaki chala usefeull..chala thanks ..anna

jaganmrkuppam
Автор

chala ante chala clarity ga chesthunnaru anna. thanks for your time on this..

PrimeAll-iv
Автор

Really awesome broh, 🎉 chala clear ga artham avuthundhi

ravitejapullikonda
Автор

Hi Anna, Spring boot framework meedha kuuda videos chesthara ... Mee way of explaining chala chala interesting ga undhi ... Meeru evrything ila chepthunte inka interest vasthundhi Anni nerchukovalani 😊

JayaPrada-sd
visit shbcf.ru