View Code of Problem 3495

#include <iostream>
using namespace std;
int main(){
 int a, b;
  while (scanf("%d %d", &a, &b) != EOF){
   printf("%d", a % b); 
  }
}
/*
F:\temp\22469879.3409\Main.cc: In function 'int main()':
F:\temp\22469879.3409\Main.cc:6: error: 'scanf' was not declared in this scope
F:\temp\22469879.3409\Main.cc:6: error: 'EOF' was not declared in this scope
F:\temp\22469879.3409\Main.cc:7: error: 'printf' was not declared in this scope
*/

Double click to view unformatted code.


Back to problem 3495