When running the code to solve for the counting operations the answer will always come out to 3 operations. Why does count always output 3 even when it does not fit the criteria?
#include <string>
#include <iostream>
using namespace std;
int main() {
string input1;
string input2;
cout << "Enter first number: ";
cin >> input1;
cout << endl;
cout << endl;
cout << "Enter second number: ";
cin >> input2;
int count = 0;
for (int i = 0; i < 3; i++) {
int thing = (input1.at(i) + input2.at(i));
if (thing > 9) {
count++;
}
}
cout << count;
return 0;
}