#include<math.h>
int main()
{
int a, b, c;
printf("Enter n:");
scanf_s("%d", &a);
for (b = 0; b <= a; b++)
{
c = pow(2, b);
printf("pow(2,%d)= %d\n", b,c);
}
return 0;
}
#include<math.h>
int main()
{
int a, b, c;
printf("Enter n:");
scanf_s("%d", &a);
for (b = 0; b <= a; b++)
{
c = pow(2, b);
printf("pow(2,%d)= %d\n", b,c);
}
return 0;
}