1
1111111111
Here is what I need to do...
I need to enter a 5 digit number from 11111 to 99999 and have the
output look like this.. Example I enter 12345..It needs to look like
this when it outputs.
1 2 3 4 5 (each number needs to be 3 spaces apart)
Here is my code so far thanks for everyone help!!!
Thanks for the input everyone!! Here is what i have so far. I AM NEW
TO THIS SO DONT BASH ME!!!
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
long integer;
cout<<"Please enter a 5 digit integer (from 11111 to 99999)"<<endl;
cin>>integer;
if ((integer>99999) || (integer<11111)) cout<<"The integer you entered
is not between 11111 and 99999"<<endl;
cout<<integer%10 THIS IS WHERE I AM STUCK!!
return 0;
}
I need to enter a 5 digit number from 11111 to 99999 and have the
output look like this.. Example I enter 12345..It needs to look like
this when it outputs.
1 2 3 4 5 (each number needs to be 3 spaces apart)
Here is my code so far thanks for everyone help!!!
Thanks for the input everyone!! Here is what i have so far. I AM NEW
TO THIS SO DONT BASH ME!!!
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
long integer;
cout<<"Please enter a 5 digit integer (from 11111 to 99999)"<<endl;
cin>>integer;
if ((integer>99999) || (integer<11111)) cout<<"The integer you entered
is not between 11111 and 99999"<<endl;
cout<<integer%10 THIS IS WHERE I AM STUCK!!
return 0;
}