Odpowiedź :
Odpowiedź:
void reszta(int a,int b){
cout<<a%b;
}
Wyjaśnienie:
//Cały skrypt:
#include <iostream>
using namespace std;
void reszta(int a,int b){
cout<<a%b;
}
int main() {
int x,y;
cout<<"Podaj liczbę: ";
cin>>x;
cout<<"Podaj liczbę: ";
cin>>y;
reszta(x,y);
}