// this is a C program that read two numbers (x,y) and display the value of x to the power y.
#include<stdio.h>
#include<conio.h>
#include<math.h>


    void main()
    {
        int x,y,z;
        clrscr();
         printf("\n\n  Enter value of X :");
        scanf("%d",&x);
        printf("\n\n  Enter value of Y :");
          scanf("%d",&y);
          z=pow(x,y);
         printf("\n\n  The value of %d to the power %d is: %d.",x,y,z);
        getch();
    }

0 comments:

Post a Comment

If you have any confusion, Please leave a comment. I will assist you. Do not include any URL in comments.

 
Top