#include <stdlib.h>
int main()
{
float value;
int select;
printf("enter a value: ");
scanf("%f", &value);
printf("[1]square\t[2]cube, select: ");
scanf("%d", &select);
switch (select)
{
case 1:
printf("%.2f\n", value * value);
break;
case 2:
printf("%.2f\n", value * value * value);
break;
default:
printf("wrong input\n");
}
system("pause");
return 0;
}