View Code of Problem 3495

#include <iostream>
using namespace std;

int main() {
	int n,m;
	while(scanf("%d %d",&n,&m)!=EOF){
		printf("%d\n",n%m);
	}
	return 0;
}

/*
F:\temp\22467888.1418\Main.cc: In function 'int main()':
F:\temp\22467888.1418\Main.cc:7: error: 'scanf' was not declared in this scope
F:\temp\22467888.1418\Main.cc:7: error: 'EOF' was not declared in this scope
F:\temp\22467888.1418\Main.cc:8: error: 'printf' was not declared in this scope
*/

Double click to view unformatted code.


Back to problem 3495