Welcome to My New Blog
Welcome!
This is the very first post on my blog. I’ve built this site using Astro, a modern web framework that makes building fast websites easy.
Why Astro?
Astro is great because:
- It ships zero JavaScript by default.
- It has a great developer experience.
- It’s highly extensible.
C++ Example
Here’s a small C++ “Hello World” you can try locally:
#include <iostream>
int main() {
std::cout << "Hello, world!\n";
return 0;
}
Compile and run:
g++ -std=c++17 hello.cpp -o hello
./hello
Stay tuned for more updates!
Arithmetic Progression (AP)
An arithmetic progression is a sequence where each term differs from the previous by a constant , called the common difference.
The -th term is:
The sum of the first terms is:
For example, the AP has and , so its 10th term is and the sum of the first 10 terms is .