HasanBDsoft

HasanBDsoft HasanBdSoft is a software company. আপনার ব্যবসা পরিচালনা ক? HasanBdSoft is a software company. We are selling the web database software at the competitive price

13/04/2018

Buy Hosting with Unlimited Space(Cheapest Price)
** Domain free
1 Unlimited Websites
2 Super Server Power
3 Unlimited Free SSL for Life
4 Unlimited Monthly Traffic
5 Unlimited Disk Space + SSD Boost
6 Email & WebMail: Unlimited Boxes
7 100% Uptime Guarantee
8 Let's Encrypt Support
9 MySQL Stored Procedures
10 MySQL Remote Access
11 E-commerce Shopping Cart
12 UNLIMITED Addon Domains
13 UNLIMITED Parked Domains
14 UNLIMITED Sub-Domains
15 UNLIMITED E-mail Boxes
16 UNLIMITED FTP Accounts
17 Unlimited MySQL Databases
18 PHP/NEW Advanced PHP Selector
19 Python v 3.5 | django | Perl | Ruby
20 For 1 year

PRICE: 4000 TK.

For contact: 01860332909
Email: [email protected]

27/02/2017
07/02/2017
14/06/2016
26/05/2016

We are providing SMS messaging with 100% delivery.

26/10/2015

For Loop
Syntax For Loop :

for (initialization; condition ; increment/decrement(iteration)) {
Statement1
Statement2
.
.
.
StatementN

}



Example:

public class JavaApplication16Java {

/**
* args the command line arguments
*/
public static void main(String[] args) {
int n;
for( n=10; n> 0; n-- ){
System.out.println(n);

}
}

}
-----------------------------output--------------------------
Here this is decrement.
10
9
8
7
6
5
4
3
2
1
BUILD SUCCESSFUL (total time: 0 seconds)
this is the example of increment:
public class JavaApplication16Java {

/**
* args the command line arguments
*/
public static void main(String[] args) {
int n;
for( n=10; n> 0; n++ ){
System.out.println(n);

}
}

output:
27853
27854
27855
27856
27857
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867
27868
27869

-------
------
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911


You can also see 'break' to exit a loop:
public static void main(String[] args) {
int n;
for( n=0; n< 10; n++ ){
if(n==5)break;
System.out.println("n:"+n);

}
}

}
output--------------------
n:0
n:1
n:2
n:3
n:4
BUILD SUCCESSFUL (total time: 0 seconds)
Continue Loop:
public static void main(String[] args) {
int n;
for( n=0; n

Address

Dhaka
1219

Alerts

Be the first to know and let us send you an email when HasanBDsoft posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to HasanBDsoft:

Share