Introduction
I have used Swift for windows 1.9 for debugging purpose. But you can use any Swift programming language compiler as per your availability.
I have used Swift for windows 1.9 for debugging purpose. But you can use any Swift programming language compiler as per your availability.
func same_last_Digit(_ a: Int, _ b: Int) -> Bool {
guard a < 0, b < 0
else
{
if a % 10 == b % 10
{
return true
}
else
{
return false
}
}
return false
}
print(same_last_Digit(18, 22))
print(same_last_Digit(5, 15))
print(same_last_Digit(25, 5))
Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …
C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …