answersLogoWhite

0


Best Answer

void main()

{

int x=100,y=3;

//lets calculate x to the power of y now

int result=0,i,j,a=x;

for(i=0;i<(y-1);i++)

{

for(j=0;j<x;j++)

result=result+a;

a=result;

result=0;

}

printf("%d",a);

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to calculate x to the power y without using operator and standard function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the order of precedence with regard to the operator used in embedded C program?

Operator precedence in embedded C is exactly the same as in standard C.


How to calculate erf?

use a program or the normal error function table :p


Explain the purpose of new and delete operator?

The new operator instantiates a named object of a given type while the delete operator destroys an object. The new operator invokes the object's default constructor unless directed to invoke a specific constructor. The delete operator always invokes the object's destructor.


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


What is the difference between simple program and function in C?

A function is a piece of code that has no or more arguments, that returns no or one value. A program is code that implements the function int main(int argc, char** argv). As such, a function and a program are the same, but the program also includes compiler directives to "include" other things, such as standard headers, i.e. #include .


What is the function from f1 to f12?

If you mean the function keys on the keyboard, they don't have a standard definition. The usage of the keys depends on the specific program. F1 is usually standardized as the help key; the other keys depend on the program you are using.


How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


How do you write a program in C to convert capital letters into small letters?

Use the tolower() function in the C standard library.


What is the difference between Built in Function and User Defined Function?

Built-in functions are functions that are provided for you by the standard includes. User-defined functions are those that you write yourself. Third-party functions are those that are written for you, but that are not provided by the standard includes.


Which function is supported by an application program?

which function is support by an application program


What are its program components?

the main() function,the#include Directive, the variable definition. function prototype, program statements, the function definition,program comments and braces are the components of program in C++


What website or free program would you use to convert recipes between US standard and metric measures and calculate nutritional values for those recipes?

Dinotube.com