Write Program C Would Perform Following Tasks Declare Integer Variable Whose Value 11 Ano Q43809828(1)
Write a program in C where you would perform the following tasks: a. Declare an integer variable a whose value is 11, and another integer p whose value is 4. b. Make a call to function myPowerl) whose arguments are the integer value a and power value p. This function should return a long integer value which you will assign to another long integer value b which should be equal to a raised to p. i. You need to write your own function myPower() ii. Ask your instructor how to write a function in C. ill. Do not use standard C function that calculates power. Instead write your own for loop that calculates power. C. Print a statement that looks similar to the following replacing a, p and b with their respective values. a raised to the power pis b Show transcribed image text Write a program in C where you would perform the following tasks: a. Declare an integer variable a whose value is 11, and another integer p whose value is 4. b. Make a call to function myPowerl) whose arguments are the integer value a and power value p. This function should return a long integer value which you will assign to another long integer value b which should be equal to a raised to p. i. You need to write your own function myPower() ii. Ask your instructor how to write a function in C. ill. Do not use standard C function that calculates power. Instead write your own for loop that calculates power. C. Print a statement that looks similar to the following replacing a, p and b with their respective values. a raised to the power pis b
Expert Answer
Answer to Write a program in C where you would perform the following tasks: a. Declare an integer variable a whose value is 11, an…
OR