
how to print from 1 to 100 using for loop ?

Hi Friend,
You can use the following code:
class Loop{
public static void main(String[] args){
for(int i=1;i<=100;i++){
System.out.println(i);
}
}
}
Thanks

Hi Friend,
You can use the following code:
class Loop{
public static void main(String[] args){
for(int i=1;i<=100;i++){
System.out.println(i);
}
}
}
Thanks

class Numbers { public satic void main(string args[]_ { for(int a=1;a<=100;a++) { System.out.println("val of a is ="+a); } } }

How java is securable ?

why java is securable ?
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.