Paste-bin.xyz
Archive
Sign In
Login
Register
Username
Current Password
Keep me signed in.
Username
Full Name
Email
New Password
CPP
98
nested forloops
Guest on 20th April 2022 02:14:25 AM
#include <iostream>
using
namespace
std
;
int
main
(
)
{
// outer loop
for
(
int
i
=
1
;
i
<=
10
;
i
++
)
{
// Inner loop
for
(
int
j
=
1
;
j
<=
10
;
j
++
)
{
cout
<<
i
*
j
<<
"
\t
"
;
}
// Skip a line.
cout
<<
endl
;
}
return
0
;
}
Raw Paste
#include
using namespace std; int main() { // outer loop for(int i=1;i<=10;i++) { // Inner loop for(int j=1;j<=10;j++) { cout << i*j << "\t"; } // Skip a line. cout << endl; } return 0; }
Login
or
Register
to edit or fork this paste. It's free.