POWER OF INPUT NUMBER

#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
 int n,s,p;
 clrscr();
 printf("\n\tEnter Number : ");
 scanf("%d",&n); //input
 printf("\n\tEnter Power : ");
 scanf("%d",&p); //input

 printf("\n\t--------------------");
 printf("\n\tGiven Number = %d",n);
 printf("\n\tGiven Power = %d",p);
 s=pow(n,p);
 printf("\n\t%d to the Power %d = %d",n,p,s);
 printf("\n\t--------------------");
 getch();
}

Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...