HERES THE CODE:
#include <iostream>
#include <conio.h>
using namespace std;
int main() {
int a,b,c,d;
cout << "Enter Four Digit positive number: ";
a = getch();
cout << char(a);
b = getch();
cout << char(b);
c = getch();
cout << char(c);
d = getch();
cout << char(d);
cout << "\nOutput:\n";
cout << char(a) << "\n";
cout << char(b) << "\n";
cout << char(c) << "\n";
cout << char(d) << "\n";
getch();
return 0;
}
Thanks!