How to calculate 2^5 or such problems using c | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to calculate 2^5 or such problems using c

27th Apr 2021, 5:00 PM
Anikur Rahman
Anikur Rahman - avatar
3 Answers
+ 5
#include <stdio.h> #include <math.h> int main() { printf("%f", pow(2,5)); }
27th Apr 2021, 5:02 PM
Rohit
+ 3
Happy to help! :)
27th Apr 2021, 5:06 PM
Rohit
+ 1
Stardirt Thanks
27th Apr 2021, 5:06 PM
Anikur Rahman
Anikur Rahman - avatar