DFAFD

金昱帆  •  22天前


#include<bits/stdc++.h> 
using namespace std; 
int add (int a, int b) { 
int c = 0; 
for (int i = a; i <= b; i++) { 
 if (i % 2 != 0) { 
  c += i; 
 } 


return c; 

int main() { 
add(1,10); 
return 0; 
}


评论: