I\'m writing a program that prompts the user for:
First part is fine, I create a dynamica
#include using namespace std; int main() { int x,i=0; char y; //to store commas int arr[50]; while(!cin.eof()){ cin>>x>>y; arr[i]=x; i++; } for(int j=0;j