Two numbers are entered through keyboard, write a program to find the value of one number raised to the power another.

This question is related to Aztec-Systems Interview

Showing Answers 1 - 11 of 11 Answers

Shivam

  • Jul 15th, 2013
 

Code
  1. #include<conio.h>

  2. #include<stdio.h>

  3. #include<math.h>

  4. "enter the number ");

  5.     scanf("%d""enter the number  in power");

  6.     scanf("%d""%d" , num);

  7.     getch();

  8. }

Code
  1. #include<stdio.h>

  2. #include<iostream>

  3. using namespace std;

  4. /* Function to calculate x raised to the power y *//* Program to test function power */"%f"

  Was this answer useful?  Yes

sudhakar

  • Jul 19th, 2014
 

how to work the scanf function?

  Was this answer useful?  Yes

shweta gupta

  • Jul 21st, 2014
 

it traverse the char type format specifier from left to right and assign the value from stdin to the address of the variable. Scanf return type is int and return the number of argument.


Its syantax is scanf(const char *,...), there is the ... represent the variable argument list.

  Was this answer useful?  Yes

Ripam Paul

  • Feb 17th, 2016
 

Here is the answer if you dont wanna use the pow.

Code
  1. #include<stdio.h>

  2. "Enter an Number and the power respectively

  3. ");

  4.                 scanf("%d%d""

  5. your acquired result is: %d",res);

  6.         }

  Was this answer useful?  Yes

Mukeshwar Singh

  • Jun 22nd, 2019
 

Easy!

Code
  1. #include <stdio.h>

  2. #include <math.h>

  3. "Enter two Numbers");

  4.   scanf("%d%d""The Value of Number is %d"

  Was this answer useful?  Yes

Shikha chaudhary

  • Jul 16th, 2020
 

This is the easiest way !!

Code
  1. #include<stdio.h>

  2. "enter the base number");

  3.     scanf("%d""enter the exponent");

  4.     scanf("%d""%d", ans);

  5. }

  6.  

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions