This blog supports some simple code syntax highlighting and the usage of .
Be weary, Katex, the library used to display Latex, will crash your development environment if it encounters a symbol it is unfamiliar with. Be sure to test your posts on the development environment before publishing the site to a production server.
Examples
Consider the following list of k a's and l b's:
Look further at this wild equation:
Code Examples
Program in c++ to get the quotient and remainder of a pair of numbers.
#include <iostream>
using namespace std;
int main()
{
int divisor, dividend, quotient, remainder;
cout << "Enter dividend: ";
cin >> dividend;
cout << "Enter divisor: ";
cin >> divisor;
quotient = dividend / divisor;
remainder = dividend % divisor;
cout << "Quotient = " << quotient << endl;
cout << "Remainder = " << remainder;
return 0;
}
Program in python using the Sieve of Eratosthenes to count primes
def countPrimes_sieve_of_eratosthenes(self, n: int) -> int:
if n < 2:
return 0
marked = set()
seive = [i for i in range(1, n)]
skip = 2
while skip * skip < n:
if skip not in marked:
marked.update(seive[2 * skip - 1 :: skip])
skip += 1
return len(seive) - len(marked) - 1