Write a program that reads the name of a city and checks if the name ends with "burg".
Keep in mind, a city can have a short name.
The program should output true or false.
Write a program that reads the name of a city and checks if the name ends with "burg".
Keep in mind, a city can have a short name.
The program should output true or false.
Sample Input 1:
AugsburgSample Output 1:
trueSample Input 2:
Saint PetersburgSample Output 2:
trueSample Input 3:
TuSample Output 3:
falseCreate a free account to access the full topic