Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //nested for loops
- //10/25/17
- #include <iostream>
- using namespace std;
- int main ()
- {
- for (int i = 0; i < 10; i++)
- {
- for (int j = 0; j<10; j++)
- {
- cout<<"i and j are :"<<i<<","<<j<<endl;
- }
- }
- //i++ scope error! because the loop is done, i only exists while we are in the brackets ... ^^
- return 0;
- }
- //look up what matrix math is :) and ask ernest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement