C languageC SolutionChapter 6Programming

Q2 Write a function power (a, b), to calculate the value of a raised to b.

Program: 123

Write a function power (a, b) in c language, to calculate the value of a raised to b.

Output:

Enter a: 2
Enter b: 3
Result: 8

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.