human
Sum of integers upto N with given unit digit | Function to return the required sum.
Driver code"
Solution in Python:

Give me a code to sum of integers upto N with given unit digit and the other steps required?
assistant
#Here is code to sum of integers upto N with given unit digit and the other steps required.
 def getSum ( n , d ) :
	sum = 0
	while ( d <= n ) :
		sum += d
		d += 10
	return sum
n = 30
d = 3
print ( getSum ( n , d ) )