The problem I have is theres suppose to be a certain amount of Os in front of the number when the final output is made.

Here's what the output is suppose to look like:

Please enter a positive number (no more than 10 digits): 12345

The number you entered has 5 digits.

Big Number: 0000012345

here's my code:

#include <iostream> using namespace std; /* Author: Dominique Pope Class: IS 2043 Date: June 25, 2009 Purpose: To make a program where the user can enter a number, and the program will mathematically count how many digits the number is. */ int main() { // declare variables const long SIZE = 10; long num[SIZE]={0,0,0,0,0,0,0,0,0,0}; // Ask for a number from user and store it. for(long i = 0; i < SIZE; i++) { cout<<"Please enter a positive number (no more than 10 digits): " << endl; cin >> num[i]; cout << "The number you entered has " << num[i]%10 << " digits." << endl; cout << "Big Number: "<< num[SIZE] <<endl; } if(num[SIZE] < 0|| num[SIZE] > SIZE + 1) { cout << "Invalid number! Try again." << endl; return 0; } // Individually count the number of digits // The individually retrievable digits are placed inside the array. system("PAUSE"); return 0; } /* Output of program should be: Please enter a positive number (no more than 10 digits): 12345 The number you entered has 5 digits. Big Number: 0000012345 */

all i need is for someone to explain how i can get those zeros in...