Hey guys I got it working thanks to your help and a friend of mines helps
Code:
#include <stdio.h>
int main()
{
int x;
float y;
char choice[3];
printf("\n Number Squarer/SquareRooter; Coded by whtpirate(elder(justin)) of LogiTeam.\n");
puts("\n");
// Start of the main stuff.
printf("\tWhat do you want to do? (s/sr): ");
scanf("%2s", choice);
if (!strcmp(choice, "s"))
{
printf("\n\tEnter any number: ");
scanf("%d", &x);
// This is what squares the numbers
x *=x;
printf("\n\t'%d' is your number squared.\n", x);
}
if (!strcmp(choice, "sr"))
{
printf("\tEnter any number: ");
scanf("%d", &x);
// This is what squareroots the numbers
y = sqrt(x);
printf("\n\t'%.0f' is your number sq-rooted.\n", y);
}
return 0;
}