All pastes #188947 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-10-02 17:55 UTC
rendered paste body
#include <iostream.h>
#include <math.h>

int place_value_add(int input, int digits); //Adds individual place values

void main(void)
{
        int input;
        int digits;

        std::cout << "This program will add the individual place values of a number that you provide" << endl;
        std::cout << "Please provide a number: ";
        std::cin >> input;
        std::cout << "Please provide the number of digits in your number: ";
        std::cin >> digits;


        std::cout << place_value_add(input, digits);

        char c1;
        cin >> c1;


}

int place_value_add(int input, int digits)
{
        std::cout << pow(10, 2) << endl;
}