Try to remember how to write C/C++…