Patri F.C. Forum Index Patri F.C.
Powered by www.tsianos.gr
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Θέμα 1 C+JAVA 2004

 
Post new topic   Reply to topic    Patri F.C. Forum Index -> Γενικά
View previous topic :: View next topic  
Author Message
panakos
Site Admin


Joined: 14 Oct 2003
Posts: 148

PostPosted: Sat Feb 07, 2004 1:15 am    Post subject: ???? 1 C+JAVA 2004 Reply with quote

Code:
#include
float a,temp,x;
int b,n;


float pow(float x,int n);

main(){
   temp=1.0;
   a=2.0;
   b=5;
   printf("to apotelesma einai %f\n",pow(a,b));
}

float pow(float x,int n){
   
   
   if (n>=1){
      
      --n;
      
      temp=x*temp;
      printf("x=%f\t temp=%f\n",x,temp);
   
   
   pow(x,n);
   }
   
   return temp;
}


_________________
Suzuki Bandit 400 Streetfighter

?????? ??????? ?????? ??? ????????!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Patri F.C. Forum Index -> Γενικά All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group