ÀԷ°ªÀÌ ½Ç¼öÀ̹ǷÎfloat speed,weight,power; scanf("%f %f %f",&speed,&weight,&power);Wide Receiver ÀÇ Á¶°Ç
if ( speed <= 4.5 && weight >= 150 && power >= 200 ) { // wide receiver ... }°¢ Æ÷Áö¼Çº° Á¶°Ç üũ´Â ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µË´Ï´Ù.if ( speed <= 4.5 && weight >= 150 && power >= 200 ) { // wide receiver ... } if ( ){ //Lineman ... } if ( ){ //Quarterback ... }¹®Á¦´Â No positions ¸¦ check ÇÏ´Â °ÍÀε¥int haspostion; hasposition = 0; if ( ) { // wide receiver ... hasposition = 1; } if ( ){ //Lineman ... hasposition = 1; } if ( ){ //Quarterback ... hasposition = 1; } // ÇÑ ¹ø ÀÌ¶óµµ if ¹®ÀÌ ÂüÀÌ µÇ¸é hasposition ÀÌ 1 ÀÌ µÊ. if ( hasposition == 0 ) { }hasposition º¯¼ö¸¦ bool ÇüÀ¸·Î ¼±¾ðÇϸébool haspostion; hasposition = false; if ( ) { // wide receiver ... hasposition = true; } if ( ){ //Lineman ... hasposition = true; } if ( ){ //Quarterback ... hasposition = true; } // ÇÑ ¹ø ÀÌ¶óµµ if ¹®ÀÌ ÂüÀÌ µÇ¸é hasposition ÀÌ true ÀÌ µÊ. if ( !hasposition ) { }