answersLogoWhite

0

AllQ&AStudy Guides
Best answer

#include <stdio.h>

int main()

{

int a, b,i,ans;

printf("Enter a and b\t");

scanf("%d %d",&a,&b);

ans=1;

for(i=0;i<b;i++)

ans=ans*a;

printf("%d to the power %d = %d",a,b,ans);

return 0;

}

This answer is:
Related answers

#include <stdio.h>

int main()

{

int a, b,i,ans;

printf("Enter a and b\t");

scanf("%d %d",&a,&b);

ans=1;

for(i=0;i<b;i++)

ans=ans*a;

printf("%d to the power %d = %d",a,b,ans);

return 0;

}

View page

Henri Verdier has written:

'Le Duc de Choiseul'

View page

The population of Aumale is 2,544.

View page

Henri d' Arles has written:

'Edmond de Nevers, le penseur et l'artiste'

'Les grands jours'

'Horizons'

View page

Stephen of Aumale died in 1127.

View page
Featured study guide
📓
See all Study Guides
✍️
Create a Study Guide
Search results