WAP to input a number and its power then show number to the power.


Note: Use pow(n,p) function

#include<stdio.h>

#include<conio.h>

#include<math.h>

int main()

{

double n,p;

double result;

printf(“Enter the number  : “);scanf(“%lf”,&n);

printf(“Enter the power : “);scanf(“%lf”,&p);

result=pow(n,p);

printf(“%.2lf to the power %.2lf is %.2lf”,n,p,result);

getch();

}

Advertisements

One thought on “WAP to input a number and its power then show number to the power.

  1. Very good daytime! I know this is kinda away issue but I got pondering which usually blog page program currently utilizing during this site? Now i’m gaining sick of WordPress since I’ve experienced problems with cyber-terrorists along with Now i’m investigating selections for a different stage. I may end up being fantastic in case you could very well stage myself in direction of the the best stand.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s