Created
January 26, 2013 12:47
-
-
Save sprintr/4642112 to your computer and use it in GitHub Desktop.
Using for loop takes the square of first 10 numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream.h> | |
void main(void) | |
{ | |
int i; | |
for(i = 1; i <= 10; i++) | |
cout << "Square of " << i << ": " << i * i << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment