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: Alexis Aragon
  5. // Date: Jun 30, 2016
  6.  
  7. #include <stdio.h>
  8. int main ()
  9.  
  10. {
  11.  
  12. /* variable definition: */
  13. int intValue, menuSelect,Results, Name;
  14. intValue = 1;
  15.  
  16. {
  17. printf ("Enter your name: \n");
  18. scanf ("%d", &Name);
  19. }
  20.  
  21.  
  22. // While a positive number
  23. while (intValue > 0)
  24.  
  25.  
  26. {
  27.  
  28. printf ("Enter a positive Integer: \n ");
  29. scanf("%d", &intValue);
  30.  
  31. if (intValue > 0)
  32. {
  33.  
  34. printf ("Enter 1 to calculate Square, 2 to Calculate Cube: \n ");
  35. scanf("%d", &menuSelect);
  36.  
  37. if (menuSelect == 1)
  38. {
  39. // Call the Square Function
  40.  
  41. Results = Square(intValue);
  42. printf("Square of %d is %d\n",intValue,Results);
  43.  
  44. }
  45.  
  46. else if (menuSelect == 2)
  47.  
  48. {
  49.  
  50. // Call the Cube function
  51. Results = Cube(intValue);
  52. printf("Cube of %d is %d\n",intValue,Results);
  53.  
  54. }
  55.  
  56. else
  57.  
  58. printf("Invalid menu item, only 1 or 2 is accepted\n");
  59.  
  60. }
  61.  
  62. }
  63. return 0;
  64.  
  65. }
  66.  
  67. /* function returning the Square of a number */
  68. int Square(int value)
  69.  
  70. {
  71.  
  72. return value*value;
  73.  
  74. }
  75.  
  76. /* function returning the Cube of a number */
  77. int Cube(int value)
  78.  
  79. { return value*value*value;
  80.  
  81. }
Runtime error #stdin #stdout 0s 2160KB
stdin
Alexis
10
1
10
2
-99
stdout
Enter your name: 
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 Invalid menu item, only 1 or 2 is accepted
Enter a positive Integer: 
 Enter 1 to calculate Square, 2 to Calculate Cube: 
 In