#include <iostream>
using namespace std;
int main()
{
int xp, xk, dx, x;
x=0;
cout<<"Vvedite xp:"<<endl;
cin>>xp;
cout<<"Vvedite xk:"<<endl;
cin>>xk;
int h = 5;
for(int i = h; i <= xk; i+=h)
cout<<i<<endl;
system("pause");
return 0;
}
Объяснение:
(
#include <iostream>
using namespace std;
int main()
{
int xp, xk, dx, x;
x=0;
cout<<"Vvedite xp:"<<endl;
cin>>xp;
cout<<"Vvedite xk:"<<endl;
cin>>xk;
int h = 5;
for(int i = h; i <= xk; i+=h)
cout<<i<<endl;
system("pause");
return 0;
}
Объяснение:
(