C Program To Read Integer (N) And Print First Three Powers (N^1,N^2,N^3)

#include<stdio.h>
#include<math.h>
int main()
{
  int num;
  printf("\nEnter The Number .\n");
  scanf("%d",&num);
  printf("\nOutput Is\n\n");
  printf("%d  ,%d  ,%d \n\n",num,num*num,num*num*num);
  return 0;
}
Sharing Is Caring

Leave a Comment