Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main() {
- double alpha[50];
- int counter = 0;
- for(int i = 0; i < 25; i++) {
- alpha[i] = pow(i, 2);
- }
- for( int i = 25; i < 50; i++) {
- alpha[i] = i * 3;
- }
- for (int i = 0; i < 50; i++) {
- if(counter >= 10) {
- cout << endl;
- counter = 0;
- } else {
- cout << alpha[i] << " ";
- }
- counter++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement