Really quick tutorial for all forum members who dont know how to color format code like this which i learned from another site.
just use 3 backticks ``` before and after the code and your code looks like this
CPP :
#include <iostream>
using namespace std;
int main() {
for(int i=0 ; i < 10 ;++i) {
cout << i <<" - hello world\n";
}
return 0;
}
Python :
# Python 3 program to find
# factorial of given number
def factorial(n):
return 1 if (n==1 or n==0) else n * factorial(n - 1);
num = 5;
print("Factorial of",num,"is",
factorial(num))