/*********************************************************** exponents.ch Exponents This program calculates the maximum number of unique license plate numbers given a number of digits and a number of spaces ************************************************************ Copyright 2014 SoftIntegration Inc. http://www.softintegration.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ***********************************************************/ //Initialize variables int spaces, digits, totalcars; //Get spaces and digits printf("enter the number of spaces on your plate: "); scanf("%d", &spaces); printf("enter the number of digits available: "); scanf("%d", &digits); //Calculate and display the total number of combinations totalcars = pow(digits, spaces); printf("The total number of cars is: %d\n", totalcars);