About 5,230,000 results
Open links in new tab
  1. C program to find power of a number using for loop

    Jul 20, 2015 · Write a C program to find power of a number using loop. Logic to find power of a number without using pow () function in C programming.

  2. C Program to Calculate the Power of a Number

    We can also use the pow() function to calculate the power of a number. double base, exp, result; printf("Enter a base number: "); scanf("%lf", &base); printf("Enter an exponent: "); scanf("%lf", …

  3. C program to find power of a number using loop - ProCoding

    Learn how to write a C program to find the power of a number. This article provides a detailed explanation and sample code for calculating both positive and negative exponents.

  4. C Program to Find Power of a Number - Sanfoundry

    Here is a C program to find the power of a number using while loop, for loop, recursion and pow function, along with an explanation and examples.

  5. Power of a Number in C - GeeksforGeeks

    Jul 31, 2023 · In this article, we will learn how to write a C program to calculate the power of a number (x n). We may assume that x and n are small and overflow doesn't happen. A simple …

  6. C Program to Find Power of a Number using For loop

    May 14, 2022 · C program to find power of a number using for loop, while loop, function, recursion, and do-while loop. In this article, you will learn how to write a c program to find …

  7. C Program to find Power of a Number - Tutorial Gateway

    This article shows you, How to write a C Program to find the Power of a Number using the For Loop, and While Loop or use the pow function.

  8. Write a C program to find power of any number x ^ y.

    Mar 22, 2023 · Write a C program to find power of any number x ^ y. The program first declares three variables: base, exponent, and result initialized to 1. It then prompts the user to enter the …

  9. Find power of a number using for loop. - Programmingempire

    Mar 17, 2022 · The following C program shows how to Find power of a number using for loop. Program to Find power of a number using for loop. int p, q, i, power=1; printf("Enter a number: …

  10. C Program to Calculate the Power of a Number

    Feb 2, 2025 · This program calculates the power of a number using a for loop. The user inputs the base and exponent, and the program computes the result using repeated multiplication.

  11. Some results have been removed
Refresh