Powering any number using C program | Power Number | C Language |

Опубликовано: 19 Ноябрь 2024
на канале: Teach Techno
679
28

Powering any number using C program | Power Number | C Language | #c_programming #coding #teach_techno #c #programming

........
........
printf("Enter exponent: ");
scanf("%d", &exp);
//storing the exponent value in a temporary variable
//to perform some arithmetic operations on it.
int temp = exp;
//Multiplying the number by itself, until the "temp"
//that contains "exp" value become zero.
while (temp != 0)
.......
........