1
2
3
4
5
6
7
8
9
10
11
12
13
#include<iostream>
using namespace std;
void main()
{
setlocale(LC_ALL,"rus");
int chislo, sum = 0;
do {
cout<<" введите число \n";
cin>>chislo;
}while(?)
}
Объяснение:
Объяснение:
// Example program
#include <iostream>
int main()
{
int n,number;
std::cin>>n;
while (true){
std::cin>>number;
if (number<0)
break;
else
std::cout<<number%n<<std::endl;
}
return 0;
}