Thanks To Evil Loco
Code://Simple Arrays By Bl4Ck.KiD... #include <iostream> #include <cmath> int main() { using namespace std; cout << "Bl4Ck.KiD...'s Simple Arrays Setup" << endl << endl; cout << "Hits In The Game" << endl; int hits [5]; hits [0]=10; hits [1]=21; hits [2]=34; hits [3]=14; hits [4]=65; hits [5]=36; cout << hits[0] - hits[5] + hits[1] / hits[4] * hits[2] + hits[3] << endl << endl; cout << "Home Runs" << endl; int homeruns [4]; homeruns [0]=5; homeruns [1]=3; homeruns [2]=0; homeruns [3]=1; cout << homeruns[0] + homeruns[1] + homeruns[2] + homeruns[3] <<endl <<endl; system("pause"); return 0; }
Bookmarks