تبلیغات
حل تمرین های c++ - برنامه ای بنوسید که دوعدد از ورودی دریافت کرده و بزرگترین مقسوم علیه مشترک انها را در خروجی نمایش دهد با فرض اینکه عدد اول بزرگتر از عدد دوم باشد؟

حل تمرین های c++

#include<iostream.h>
#include<conio.h>
int main()

{
int i,x,a,b;
cout<<"enter a:";
cin>>a;
cout<<"enter b:";
cin>>b;
for(i=1;i<=a;i++)
       if(a%i==0)
                cout<<i<<"\t";

cout<<"/n/n";
for(i=1;i<=b;i++)
   if(a%i==0)
                 cout<<i<<"\t";
x=a%b;

while(x!>0)

{
a=b;
b=x;
x=a%b;

}


         cout<<"/n/n the greatest number is:"<<b;

getch();
return 0;
}

نظرات() 
real psychic readings
شنبه 15 مهر 1396 06:34 ب.ظ
ما یک گروه از داوطلبان هستیم و یک طرح جدید در جامعهمان ایجاد میکنیم.

وب سایت شما با اطلاعات ارزشمندی برای کار کردن به ما ارائه داد. شما کار بزرگی انجام داده اید و ما
کل جامعه برای شما سپاسگزار خواهد بود
Why does it hurt right above my heel?
دوشنبه 27 شهریور 1396 06:13 ب.ظ
It's nearly impossible to find educated people about this subject,
however, you sound like you know what you're talking about!
Thanks
http://tabithadargie.weebly.com/
سه شنبه 17 مرداد 1396 07:40 ق.ظ
You have made some good points there. I looked on the
web to learn more about the issue and found most people will go along with your views
on this web site.
http://jeanenesiskin.hatenablog.com/archive/2015/06/26
یکشنبه 15 مرداد 1396 04:01 ب.ظ
I know this web site gives quality dependent posts and additional
material, is there any other website which presents such stuff
in quality?
What causes burning pain in Achilles tendon?
شنبه 7 مرداد 1396 08:58 ب.ظ
I am sure this article has touched all the internet users, its really really
fastidious post on building up new weblog.
art photography
چهارشنبه 14 تیر 1396 10:33 ق.ظ
Fantastic items from you, man. I have take note your
stuff previous to and you are just extremely magnificent.

I really like what you have bought right here, really like what you're stating and the way in which you
assert it. You make it entertaining and you continue to take care of to keep
it wise. I can not wait to learn far more from you.
That is really a terrific web site.
Nigel
دوشنبه 25 اردیبهشت 1396 02:29 ق.ظ
of course like your website however you have to test the spelling
on several of your posts. Several of them
are rife with spelling problems and I to find it very troublesome to
tell the truth however I'll definitely come back again.
BHW
پنجشنبه 24 فروردین 1396 07:41 ق.ظ
Wow, that's what I was searching for, what a information! present here at this
web site, thanks admin of this web site.
manicure
پنجشنبه 17 فروردین 1396 04:18 ب.ظ
Tremendous issues here. I'm very glad to see your article.
Thanks so much and I am having a look forward to touch you.
Will you kindly drop me a mail?
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر
  • آخرین پستها

آمار وبلاگ

  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد نویسندگان :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :