Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        5年前关闭。
                                                                                            
                
        
#include <stdio.h>

int main(void) {
   int numPeople = 0;

   numPeople = 10;
   /* Your solution goes here  */

      if (numPeople = 10)
         numPeople + 5;


   printf("There are %d people.\n", numPeople);

   return 0;
}

最佳答案

编写一个使numPeople增加5的语句。


numPeople += 5;



  如果numPeople最初为10,则numPeople变为15。


正确。将10增加5可以得到15。上面的陈述满足了这个测试用例。

关于c - 编写一个使numPeople增加5的语句。如果numPeople最初为10,则numPeople变为15 ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28126674/

10-10 04:12