| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 943 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺ΪʲôifÖ»Ö´ÐеÚÒ»¸ö
È¡ÏûÖ»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
z815024147
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º3
ר¼Ò·Ö£º0
×¢¡¡²á£º2012-10-19
½áÌûÂÊ£º0
ÊÕ²Ø
ÒѽáÌù¡Ì  ÎÊÌâµãÊý£º20 »Ø¸´´ÎÊý£º0 
ΪʲôifÖ»Ö´ÐеÚÒ»¸ö
#include<iostream.h>
int main()
{
    int n,m;
    cin>>n;
    m=n%2;
    if(m=1)
    {
    cout<<"Odd number"<<endl;
    }
    if(m=0)
    {   
    cout<<"Even number"<<endl;
    }
    return 0;
}
²»ÂÛÎÒÊäÈëÄļ¸¸öÊý×Ö£¬³ÌÐòÖ»Êä³ö¡°Odd number¡±
2012-10-19 14:35
¿ìËٻظ´£ºÎªÊ²Ã´ifÖ»Ö´ÐеÚÒ»¸ö
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.022439 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved