Stuff
public cpp v1 · immutable#include <iostream.h>long x;void DisplayWithCommas(long Numb){/*Displays proper commas in the correct places. Post: Commas put in the correct places of the user inputted number.*/ if(( 0 < Numb) && (Numb < 1000)) { cout << x; } else if(Numb == 0) { cout << "000"; } else { DisplayWithCommas(Numb/1000); cout << ","; DisplayWithCommas(Numb%1000); }}int main(){ cout << "Enter a number:"; cin >> x; DisplayWithCommas(x); return(0);}