progress:
key:none
code:
#include<stdio.h>
#include<math.h>
#include<iostream>
using namespace std;
void Sum_X(int x)
{
int Count=0;
for(int i=1;i<x;i++)
{
if(i%3==0||i%5==0)
Count+=i;
//cout<<i<<endl;
}
cout<< Count;
}
int main()
{
int Number;
cout<<"Please input the number below: ";
cin>>Number;
Sum_X(Number);
return 0;
}
answer: 233168
===========================================================