fork download
  1. // C code
  2. // This program will provide options for a user to calculate the square
  3. // or cube of a positive Integer input by a user.
  4. // Developer: Faculty CMIS102
  5. // Date: Jan 31, 2014
  6. #include <stdio.h>
  7. int main ()
  8. {
  9. /* variable definition: */
  10.  
  11. int intValue, menuSelect,Results;
  12. intValue = 1;
  13. // While a positive number
  14. while (intValue > 0)
  15. {
  16. printf ("Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. \n: ");
  17. scanf("%d", &intValue);
  18. if (intValue > 0)
  19. {
  20. printf ("Enter 1 to calculate Square, 2 to Calculate Cube \n: ");
  21. scanf("%d", &menuSelect);
  22. if (menuSelect == 1)
  23. {
  24. // Call the Square Function
  25. Results = Square(intValue);
  26. printf("Square of %d is %d\n",intValue,Results);
  27. }
  28. else if (menuSelect == 2)
  29. {
  30. // Call the Cube function
  31. Results = Cube(intValue);
  32. printf("Cube of %d is %d\n",intValue,Results);
  33. }
  34. else
  35. printf("Invalid menu item, only 1 or 2 is accepted\n");
  36. }
  37.  
  38.  
  39. }
  40.  
  41. return 0;
  42. }
  43.  
  44. /* function returning the Square of a number */
  45. int Square(int value)
  46. {
  47. return value*value;
  48. }
  49.  
  50. /* function returning the Cube of a number */
  51. int Cube(int value)
  52. {
  53. return value*value*value;
  54. }
Runtime error #stdin #stdout 0s 2116KB
stdin
Standard input is empty
stdout
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a negative Integer to exit the program. 
: Enter 1 to calculate Square, 2 to Calculate Cube 
: Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer to calculate the square or cube; OR a ne