Hi,
i want to make a program of power by using function any one help me
example
2^2=4
furqankhyraj
-11
Newbie Poster
Recommended Answers
Jump to Postmaybe use
int i, pow; printf("please enter the digit:\n"); scanf("%d", &i); printf("\nThank you, and the power value?:\n"); scanf("%d", &pow); printf("\nThe value is: %d", i**pow);
im not sure if it will work but its an idea?
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.