A Minus B
Source Code
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n;
for(int i = 0; i < n; i++){
cin >> a >> b;
cout << a - b << "\n";
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, a, b;
cin >> n;
for(int i = 0; i < n; i++){
cin >> a >> b;
cout << a - b << "\n";
}
return 0;
}