Created
June 29, 2021 19:01
-
-
Save chbtoys/bf67811b42f889a1ad4554d6b2e1ea00 to your computer and use it in GitHub Desktop.
Code Examples. From Paper to Code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From Paper to Code | |
// Sigma - Summation | |
// Run with: https://www.jdoodle.com/online-compiler-c++17/ | |
// LaTeX: \sum_{i=1}^{100} i | |
// Test LaTeX: https://quicklatex.com/ | |
#include <iostream> | |
int main() { | |
int sum=0; | |
for (int i=1;i<=100;i++) | |
{ | |
sum += i; | |
} | |
std::cout << "Sum = " << sum << std::endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment