So basically, I need to get an input and square it. some reason the pow()
function isn't working.
#include <stdio.h>
#include <math.h>
int main (){
int in, ans;
scans("%d", &in);
ans = pow(in, 2);
printf("answer is: %d", ans);
return 0;
}
The error is :
undefined pow or something like that