/* 
 * Author:     Wil Schrader
 * Date:       9/1/2009
 * Version:    1.0
 * Class:      CIT 131 / Fall 2009 
 *
 * Assignment: 1) Cube
 *                Ask the user to input an integer.
 *                Print the cubed result of the number.
 */
#include <stdio.h>

/* Main Function */
int main( void ) {

   int n;

   /* Ask the user for an integer */
   printf( "Enter an integer: " );
   scanf( "%d", &n );

   /* Print the cubed result by multiplying the integer by itself three times */
   printf( "%d^3 = %d\n", n, (n * n * n) );

   return 0; /* Program ended successfully */

} /* End Main Function */
