## (Solution document) My code is not compiling correctly you someone take a look #include <stdio.h> int Square(int value); int Cube(int value); int Shrink(int...

My code is not compiling correctly you someone take a look

#include

int Square(int value);

int Cube(int value);

int Shrink(int value);

int main ()

{

/* variable definition: */

intValue = 1;

// While a positive number

while (intValue > 0)

{

printf ("Enter a positive Integern: ");

scanf("%d", &intValue);

if (intValue > 0)

{

printf ("Enter 1 to calculate Square, 2 to Calculate Cube, 3 to Calculate Shrinkn: ");

{

// Call the Square Function

Results = Square(intValue);

printf("Square of %d is %dn",intValue,Results);

}

{

// Call the Cube function

Results = Cube(intValue);

printf("Cube of %d is %dn",intValue,Results);

}

// Call the Shrink Function

Results = Shrink(intValue);

printf("Shrink of %d is %dn",intValue,Results);

}

else

printf("Invalid menu item, only 1 or 2 is acceptedn");

}

}

return 0;

}

/* function returning the Square of a number */

int Square(int value)

{

return value*value;

/* function returning the Cube of a number */

int Cube(int value)

{

return value*value*value;

/* function returning the Shrink of a number */

int Shrink(int value)

{

return value*value/2;

}

Solution details:
STATUS
QUALITY
Approved

This question was answered on: Dec 08, 2020

Solution~000652147569873.zip (25.37 KB)

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free solution (Deadline assured. Flexible pricing. TurnItIn Report provided)

STATUS

QUALITY

Approved

Dec 08, 2020

EXPERT

Tutor