DIGSMPAR(april cookoff 2022)

https://www.codechef.com/submit/DIGSMPAR

#include <iostream>
using namespace std;

int main() {
	int t;
	cin>>t;
	while(t--)
	{
	    long long int num;
	    int a;
	    cin>>num;
	    int x = num;
	        a= x%10;
	        if(a!=9)
	           cout<<num+1<<endl;
	        else
	           cout<<num+2<<endl;
	}
	return 0;
}