کد:#include <conio.h> #include <iostream.h> int gcd(int,int); int main() { int x,y; cout<<"enter amount for x and y:"; cin>>x>>y; int k=gcd(x,y); cout<<k; getch(); return 0; } int gcd(int x,int y) { if(y==0) return x; else return gcd(y,x&y); }
کد:#include <conio.h> #include <iostream.h> int gcd(int,int); int main() { int x,y; cout<<"enter amount for x and y:"; cin>>x>>y; int k=gcd(x,y); cout<<k; getch(); return 0; } int gcd(int x,int y) { if(y==0) return x; else return gcd(y,x&y); }
Classic (2012/02/09),IRANASHIYANE (2012/02/06)
---------------------------------------------------------------
به جای آنکه چندین تاپیک بخوانید *** تاپیک [برای مشاهده لینک ها ابتدا ثبت نام کنید. ثبت نام کنید...]را چندین بار بخوانید
---------------------------------------------------------------
طراحی و راه اندازی وبسایت
ArasData.ir
Tel: 09148878721
Ansari
کاربرانی که از این تابیک ایران آشیانه دیدن کرده اند به صورت زیر میباشدYou do not have permission to view the list of names.
علاقه مندي ها (Bookmarks)