it traverse the char type format specifier from left to right and assign the value from stdin to the address of the variable. Scanf return type is int and return the number of argument.
Its syantax is scanf(const char *,...), there is the ... represent the variable argument list.
Ripam Paul
Feb 17th, 2016
Here is the answer if you dont wanna use the pow.
Code
#include<stdio.h>
main()
{
int num, pwr, res=1;
printf("Enter an Number and the power respectively
Two numbers are entered through keyboard, write a program to find the value of one number raised to the power another.
Related Answered Questions
Related Open Questions