Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #define SQMAX 500
- using std::cout;
- using std::endl;
- int main(void){
- int count = 0;
- int output;
- while (output <= SQMAX) {
- count++;
- output = pow(count, 2);
- cout << output << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement