Jump to content
Forum Roportal
Sign in to follow this  
sorin21us

nested for loops

Rate this topic

Recommended Posts

Va rog sa-mi spuneti cum printez un tabel cu ajutorul a doua for loops (nested).

 

Ceva de genu:

 

for($row=0; $row < 10; $row++) // outer loop

{

for($col=0; $col < 10; $col++) //inner loop

{

 

}

}

 

Asta e o idee, dar mai mult nu stiu.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×