Hello Everyone,
I am a very green programmer, lol, and I really need alot of attention right now. My assignment consists of me writing simple codes, but I just cant figure this out out.
Question:
write a program using a function and a series of if/else statements or switch function. the user will be prompted to input an integer, then use the if/else or switch statement to output the integer in the word form. ie 1 = one , 2 = two.
This is what I have so far:
#include <iostream>
using namespace std;
// This program will switch the user input from integer to a string form.//
int main ()
{
int num;
char word;
int numcount;
for (numcount = 0; numcount <=5; numcount ++){
cout << " Enter an integer: " << endl;
cin >> num;
cout <<" You entered the number " << word<< endl;
}
return 0;
}