Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- using namespace std;
- int main () {
- int sqr;
- int avg = 0;
- int listSize;
- cin>>listSize;
- int stuff [listSize];
- for (int m = 0; m<listSize; m++)
- {
- sqr=listSize*listSize;
- cout<<sqr[m];
- }
- cout<<endl;
- cout<<"the average is: ";
- int total = 0;
- for (int m = 0; m<listSize; m++)
- {
- total = total + stuff[m];
- double avg = total/(listSize+1);
- }
- return 0;
- }# include <iostream>
- using namespace std;
- int main () {
- int sqr;
- int avg = 0;
- int listSize;
- cin>>listSize;
- int stuff [listSize];
- for (int m = 0; m<listSize; m++)
- {
- sqr=listSize*listSize;
- cout<<sqr[m];
- }
- cout<<endl;
- cout<<"the average is: ";
- int total = 0;
- for (int m = 0; m<listSize; m++)
- {
- total = total + stuff[m];
- double avg = total/(listSize+1);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement