mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-07-07 18:06:58 +08:00
更新了许多
This commit is contained in:
18
满足条件的数.cpp
Normal file
18
满足条件的数.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include <bits/stdc++.h>
|
||||
using namespace std;
|
||||
int main(){
|
||||
int m;
|
||||
int n;
|
||||
int a=0;
|
||||
cin >>m>>n;
|
||||
while(m<=n){
|
||||
if(m%7==0){
|
||||
a+=m;
|
||||
|
||||
}
|
||||
m++;
|
||||
}
|
||||
cout <<a;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user