#include <stdio.h>
#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);
if (select == 1)
printf("%.2f\n", value * value);
else if (select == 2)
printf("%.2f\n", value * value * value);
else
printf("wring input\n");
system("pause");
return 0;
}