تبلیغات
برتر رایانه - برنامه 3
 
درباره ما




مدیریت : منصوری
موضوعات
نویسندگان
نظرسنجی
آیا با راه اندازی فروشگاه برتر موافقید؟






آمار
  • کل بازدید :
  • بازدید امروز :
  • بازدید دیروز :
  • بازدید این ماه :
  • بازدید ماه قبل :
  • تعداد کل پست ها :
  • آخرین بازدید :
  • آخرین بروز رسانی :
برتر رایانه
صفحه نخست             تماس با مدیر           پست الکترونیک               RSS                  ATOM
1392/08/8 :: نویسنده : منصوری
برنامه ای بنویسید که 2 عدد از کاربر بگیرد و اعداد زوج بین دو عدد را چاپ کند.



// MORTEZA MANSOURI** M_Mansouri_71@yahoo.com ** WWW.BARTARYANEH.IR
#include "iostream"

using namespace std;

int main(int argc, char *argv[])
{
    int a,b,temp;
    cout<<"Enter Number 1: ";
    cin>>a;
    cout<<"Enter Number 2: ";
    cin>>b;
    if (a>b){
             temp=b;
             b=a;
             a=temp;
             }
    if (a%2==1)
       a--;
    if (b%2==1)
       b+1;
       while(a<(b-2)){
                      a+=2;
                      cout<<a<<"\n";
                      }
    system("PAUSE");
    return EXIT_SUCCESS;
}





نوع مطلب : ▼ برنامه نویسی، پروژه های C++، 
برچسب ها :
لینک های مرتبط :


1396/06/14 16:08
These are in fact enormous ideas in on the topic of blogging.
You have touched some fastidious things here. Any way keep up wrinting.
1396/05/30 16:41
Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn't appear.

Grrrr... well I'm not writing all that over again. Anyways,
just wanted to say wonderful blog!
1396/05/16 13:16
Hi colleagues, how is everything, and what you wish for
to say on the topic of this paragraph, in my view its really amazing in favor
of me.
1396/05/13 18:09
Great delivery. Outstanding arguments. Keep up the great spirit.
1396/04/14 16:50
What's Happening i am new to this, I stumbled upon this I've found It positively
useful and it has helped me out loads. I'm hoping to give a contribution & assist different
users like its aided me. Great job.
1396/02/25 13:58
I'm curious to find out what blog platform you are working with?

I'm experiencing some minor security problems with my latest site and I
would like to find something more secure. Do you have any suggestions?
1396/01/24 06:12
An impressive share! I have just forwarded this onto a
coworker who was doing a little homework on this. And
he in fact ordered me breakfast simply because I stumbled upon it for him...

lol. So allow me to reword this.... Thanks for the meal!!
But yeah, thanks for spending time to talk about this matter here on your web page.
1396/01/21 03:57
Wow! This blog looks just like my old one! It's on a entirely different topic but it has pretty much the same page layout and design. Wonderful choice of colors!
1396/01/19 19:34
Good day! This post couldn't be written any better! Reading this post reminds
me of my previous room mate! He always kept talking about this.
I will forward this write-up to him. Fairly certain he will have
a good read. Many thanks for sharing!
1396/01/15 20:45
If you are going for finest contents like I do, only pay a quick
visit this web site all the time for the reason that it
gives quality contents, thanks
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر