+ 2
Try to ans this???
for any c programming... { int x=10, num; num=x**2; printf("%d",num); } for any c programming...the power of operator doesn't works....but some another languages...like python and other some languages works ....power of operator... why....???
2 Réponses
+ 4
Because different languages have different syntax. The proper way is as pointed out by Faisal.
+ 3
In C, there isn't a default power operator like in most languages, so your best option would be to use the pow() function in the math.h library.
#include <math.h>
int main(){
int x = 10;
int num = pow(x,2);
printf("%d",num);
return 0;
}