human
Find the integers that doesnot ends with T1 or T2 when squared and added X | Function to print the elements Not ending with T1 or T2.
Flag to check if none of the elements Do not end with t1 or t2.
Traverse through all the elements.
Temporary variable to store the value.
If the last digit is neither t1 nor t2 then.
Print the number.
Set the flag as False.
If none of the elements meets the specification.
Test case 1.
Call the function.
Test case 2.
Call the function"
Solution in Python:
 Can you provide a code to find the integers that doesnot ends with T1 or T2 when squared and added X and the other steps required?
assistant
#Here is code to find the integers that doesnot ends with T1 or T2 when squared and added X and the other steps required.
 def findIntegers ( n , a , x , t1 , t2 ) :
	flag = True
	for i in range ( n ) :
		temp = pow ( a [ i ] , 2 ) + x
		if ( temp % 10 != t1 and temp % 10 != t2 ) :
			print ( temp , end = " ▁ " )
			flag = False
	if flag :
		print ( - 1 )
N , X , T1 , T2 = 4 , 10 , 5 , 6
a = [ 3 , 1 , 4 , 7 ]
findIntegers ( N , a , X , T1 , T2 ) ;
print ( )
N , X , T1 , T2 = 4 , 2 , 5 , 6
b = [ 2 , 18 , 22 , 8 ]
findIntegers ( N , b , X , T1 , T2 )