#include<stdio.h> #include<conio.h> main() { int a b c; clrscr(); printf("enter two no.:"); scanf(" d d" &a &b); c a+b; pritf("sum of no.is d" c); getch(); }
RE: Two numbers are entered through keyboard, write a program to find the value of one number raised to the power another.
#include<stdio.h> int main() { int a b i prod 1; printf("Enter a number :"); scanf(" d" &a); printf("Enter its power:"); scanf(" d" &b); for(i 0;i<b;i++) prod prod*a; printf("pow(a b) d" prod); getch(); return 0; }