- 问答
%%%
- 2023-9-23 18:31:19 @
#include<iostream>
#include<cstdio>
int sum=0;
int pd(int x)
{
if(x%2!=0) return x;
}
int main()
{
int m,n,sum;
std::cin>>m>>n;
for(int i=m;i<=n;i++)
{
sum+=pd(i);
}
std::cout<<sum;
return 0;
}
0 comments
No comments so far...