My Space
Tuesday, 14 February 2017
Array Manipulation (C++)
#include <iostream>
using namespace std;
int main()
{
int array[3];
for(int x=0; x<3; x++){
cin>>array[x];
}
for (int loop=0;loop<3 ; loop++){
cout<<array[loop];if(loop<2){cout<<",";}
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment