#include <iostream>
#include <string>

using namespace std;

int main(int argc,char **argv){
    string command;
    cout << argv[1];

    //While loop that repeats $ and cin command
    while(command != "exit"){
        cout << "$";
        cin >> command;
    }

    return 0;
}

#inlcude <iostream>

using namespace std;

int main(){
    return 0;
}

--- 
+++ 
@@ -1,7 +1,17 @@
-#inlcude <iostream>
+#include <iostream>
+#include <string>
 
 using namespace std;
 
-int main(){
+int main(int argc,char **argv){
+    string command;
+    cout << argv[1];
+
+    //While loop that repeats $ and cin command
+    while(command != "exit"){
+        cout << "$";
+        cin >> command;
+    }
+
     return 0;
 }
Print $ in for loop
