Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int IntegerArray [5]= {15,24,54,33,120};
- float FloatArray [5]= {1.0 , 2.4, 2.68 , 3.57, 5.2};
- string StringArray [5]= {"hi", "this", "is", "me", "goingtothetop"};
- int main (){
- for (int RepInt = 0; RepInt < 5 ; RepInt++)
- {
- cout << IntegerArray[RepInt] << endl;
- }
- for (int RepFloat = 0; RepFloat < 5 ; RepFloat ++)
- {
- cout << FloatArray[RepFloat] << endl;
- }
- for (int RepString = 0; RepString < 5 ; RepString ++)
- {
- cout << StringArray[RepString]<< endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement