Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int IntegerArray [5]= {15,24,54,33,120};
  7. float FloatArray [5]= {1.0 , 2.4, 2.68 , 3.57, 5.2};
  8. string StringArray [5]= {"hi", "this", "is", "me", "goingtothetop"};
  9.  
  10.     int main (){
  11.  
  12.     for (int RepInt = 0; RepInt < 5 ; RepInt++)
  13.     {
  14.         cout << IntegerArray[RepInt] << endl;
  15.     }
  16.     for (int RepFloat = 0; RepFloat < 5 ; RepFloat ++)
  17.     {
  18.         cout << FloatArray[RepFloat] << endl;
  19.     }
  20.     for (int RepString = 0; RepString < 5 ; RepString ++)
  21.     {
  22.         cout << StringArray[RepString]<< endl;
  23.     }
  24.  
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement