GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Aztec Systems  >  C
Go To First  |  Previous Question  |  
 C  |  Question 8 of 8    Print  
Two numbers are entered through keyboard, write a program to find the value of one number raised to the power another.

  
Total Answers and Comments: 3 Last Update: October 14, 2009     Asked by: sweety 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 25, 2008 03:15:34   #1  
tarun00000 Member Since: October 2008   Contribution: 1    

sum of two numbers

#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();
}


 
Is this answer useful? Yes | No
October 13, 2009 01:38:18   #2  
terna_engg Member Since: October 2009   Contribution: 2    

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>
#include<conio.h>
#include<math.h>
void main()
{
int a b;
printf("enter the 2 nos:");
scanf(" d" &a &b);
pow(a b);
getch();
)
pow(a b0
{
return(a^b);
}

 
Is this answer useful? Yes | No
October 14, 2009 13:01:50   #3  
sarabjit Member Since: August 2009   Contribution: 14    

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;
}

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape