#include<stdio.h>
main()
{
int num1, index, result, temp; /* num2=index*/
printf("Enter the number:");
scanf ("%d", &num1);
printf("Enter the index:");
scanf("%d", &index);
result=1;
temp=1;
while(temp<=index)
{
result = result*num1;
temp++;
}
printf("%d raised to %d is: %d ", num1, index, result);
}
The file can be found at:
Download File.
main()
{
int num1, index, result, temp; /* num2=index*/
printf("Enter the number:");
scanf ("%d", &num1);
printf("Enter the index:");
scanf("%d", &index);
result=1;
temp=1;
while(temp<=index)
{
result = result*num1;
temp++;
}
printf("%d raised to %d is: %d ", num1, index, result);
}
The file can be found at:
Download File.
No comments:
Post a Comment
kiss on google ads if you are anonymous because your ip is trackable.thank you.
......from.admin