| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 943 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺ΪʲôifÖ»Ö´ÐеÚÒ»¸ö
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
z815024147
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º3
ר¼Ò·Ö£º0
×¢¡¡²á£º2012-10-19
½áÌûÂÊ£º0
ÊÕ²Ø
ÒѽáÌù¡Ì  ÎÊÌâµãÊý£º20 »Ø¸´´ÎÊý£º18 
Ϊʲô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
º®·çÖеÄϸÓê
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
µÈ¡¡¼¶£º¹ó±ö
Íþ¡¡Íû£º66
Ìû¡¡×Ó£º1710
ר¼Ò·Ö£º8645
×¢¡¡²á£º2009-9-15
ÊÕ²Ø
µÃ·Ö:2 
m=1  ÓпÏÄÜʧ°ÜÂð£¿

m == 1
m == 0    Ϊ·ÀÖ¹ÕâÖÖÎÊÌâ  Ï°¹ßд³É  1 == m    0 == m
2012-10-19 15:00
lchpersonal
Rank: 2
µÈ¡¡¼¶£ºÂÛ̳ÓÎÃñ
Íþ¡¡Íû£º1
Ìû¡¡×Ó£º34
ר¼Ò·Ö£º81
×¢¡¡²á£º2012-7-27
ÊÕ²Ø
µÃ·Ö:2 
µÍ¼¶´íÎ󣡣¡£¡£¡

Öؽ£Î޷棬´óÇɲ»¹¤
2012-10-19 17:50
zhuanjia0
Rank: 4
µÈ¡¡¼¶£ºÒµÓàÏÀ¿Í
Íþ¡¡Íû£º3
Ìû¡¡×Ó£º86
ר¼Ò·Ö£º232
×¢¡¡²á£º2012-1-13
ÊÕ²Ø
µÃ·Ö:2 
m=1 ÕâÌõ¼þºã³ÉÁ¢£¡
=¸³Öµ
==ºãµÈ
2012-10-19 18:32
jarryjsq
Rank: 3Rank: 3
µÈ¡¡¼¶£ºÂÛ̳ÓÎÏÀ
Íþ¡¡Íû£º1
Ìû¡¡×Ó£º45
ר¼Ò·Ö£º124
×¢¡¡²á£º2011-7-11
ÊÕ²Ø
µÃ·Ö:2 
µÍ¼¶´íÎó£¬Õâ¸öÐèҪעÒâ¡£¡£
2012-10-19 19:40
´Ï¶ù
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º75
ר¼Ò·Ö£º3
×¢¡¡²á£º2012-9-2
ÊÕ²Ø
µÃ·Ö:2 
=¸³Öµ
==ºãµÈ
¿´À´ÄãÊÇûÓÐŪÃ÷°×ÕâÁ½¸öµÄÇø±ð
¸³ÖµÓï¾ä
  if(m=1)
    Ï൱ÓÚ m=1£»
        È»ºóif(m) ¼´if(1) ºã³ÉÁ¢£¬ËùÒÔ¾ÍÖ»ÊÇÖ´ÐÐÕâ¿é
ºãµÈif(m==1²ÅÊÇÅжÏÓï¾ä£¬ÎªÂß¼­±í´ïʽ£¬µ±mµÄÖµÊÇ1ʱΪÕ棬·ñÔòΪ¼Ù£¬Ö´ÐÐÏÂÒ»¸öif
        
2012-10-19 19:41
wuchunbing
Rank: 2
µÈ¡¡¼¶£ºÂÛ̳ÓÎÃñ
Ìû¡¡×Ó£º27
ר¼Ò·Ö£º24
×¢¡¡²á£º2012-10-9
ÊÕ²Ø
µÃ·Ö:2 
¹²Í¬Ñ§Ï°
2012-10-19 20:16
ССС»ð²ñ
Rank: 5Rank: 5
À´¡¡×Ô£º½­Î÷¸ÓÖÝ
µÈ¡¡¼¶£ºÖ°ÒµÏÀ¿Í
Íþ¡¡Íû£º3
Ìû¡¡×Ó£º141
ר¼Ò·Ö£º337
×¢¡¡²á£º2012-9-28
ÊÕ²Ø
µÃ·Ö:2 
¡£¡£¡£×¢Ò⸳ֵÓï¾äºÍÅжÏÓï¾ä£¡

   ºÃºÃѧϰ£¡
2012-10-19 22:04
wuyushuai521
Rank: 2
µÈ¡¡¼¶£ºÂÛ̳ÓÎÃñ
Ìû¡¡×Ó£º80
ר¼Ò·Ö£º47
×¢¡¡²á£º2012-10-9
ÊÕ²Ø
µÃ·Ö:2 
¡°=¡±ÊǸ³ÖµÓï¾ä£¬¡°==¡±ÊÇÂß¼­Óï¾ä¡£¡£¡£
2012-10-20 10:15
Ì콣ɽ
Rank: 4
µÈ¡¡¼¶£ºÒµÓàÏÀ¿Í
Íþ¡¡Íû£º3
Ìû¡¡×Ó£º119
ר¼Ò·Ö£º266
×¢¡¡²á£º2012-8-3
ÊÕ²Ø
µÃ·Ö:2 
"="ÊǸ´ÖÆ£¬Ò»°ãÇé¿öÏÂÊÇtrue£¬"=="²ÅÊÇÏàÓ¦µÄÅжϺÅ
ÊôÓÚ³õѧÕßÉõÖÁ±à³ÌʦÈÝÒ×·¸µÄ´íÎ󣬽÷¼Ç£¡£¡£¡£¡
2012-10-20 14:34
¿ìËٻظ´£ºÎªÊ²Ã´ifÖ»Ö´ÐеÚÒ»¸ö
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



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

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