Print a semicolon in C++ without using the semicolon character

Task

Write a C++ code in the code playground below that prints a semicolon in the output window:

;

However, it should be done without using the semicolon character anywhere inside the program.

A slight hint is already incorporated in the code.

#include <iostream>
using namespace std;
# define SEMICOLON 59 // ASCII value of semicolon
int main() {
// your code goes here
}
New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources