Free programming tutorials
Stop just reading code.
Start building with it.
Learn programming with step-by-step tutorials, hundreds of programs with their output, MCQ quizzes and an online editor that runs your code instantly. Free, no sign-up.
- Programs & lessons
- 270+
- Programs & lessons
- Articles
- 30+
- Articles
- Languages
- 8
- Languages
#include <stdio.h>
int main() {
int a = 5, b = 7;
printf("Sum = %d\n", a + b);
return 0;
}Output
Sum = 12
What you can do on StudyFame
Learn step by step
Short tutorials that explain one idea at a time.
Practice with programs
Hundreds of solved programs, each with its output.
Test yourself
MCQ quizzes with answers to check what stuck.
Run code online
Edit HTML, CSS and JavaScript and see it live.
Learning resources
Pick a language and start coding
Begin with the fundamentals, then practice with real programs.
- C C TutorialFree C tutorial from basics to advanced: 18 modules with examples, output, line-by-line explanations, practice questions, coding exercises and quizzes151 pages
- CC ProgramPrograms with output55 pages
- PHPPHP ProgramServer-side programs13 pages
- JSJavaScriptLearn the language4 pages
- SQLPL/SQL ProgramBlocks, cursors, loops15 pages
- C++C++ ProgramOOP and logic programs13 pages
- C#C# ProgramBeginner .NET programs7 pages
- JSJavaScript ProgramPractice with programs15 pages
Online code editor
Don't just read code. Run it.
Write HTML, CSS and JavaScript right here and see the result instantly. Nothing to install, and your code runs safely in your browser.
- Live preview of your page
- Great for trying tutorial examples
- Works on any device
Output
MCQ practice
Know what you know.
Timed multiple choice quizzes with marks and answers. A quick way to revise before an exam or an interview.
All MCQ quizzesFrom the blog
Latest articles
- CareerHow to Write a Thank-You Email After an Interview (With Examples)How to write a thank-you email after an interview: when to send it, subject lines, 10 copy-ready examples and a follow-up email if they don't reply.Read article →
- Artificial IntelligenceClaude vs ChatGPT in 2026: Features, Pricing and Which One to ChooseClaude vs ChatGPT in 2026: models, features, coding tools, plans and API prices compared side by side, plus which AI assistant to choose.Read article →
- Brain Teasers10 Best Riddles with Answers, Hints, and Simple Explanations (Fun Brain Teasers 2025)Discover 10 of the best riddles with answers, hints, and simple explanations. Perfect for kids, adults, and team games. Test your brain with fun riddles like “What comes once in a minute?” and “I’m tall when I’m young, short when I’m oldRead article →
Learn by doing, not by memorising.
Every topic pairs the explanation with code you can read, run and change.
Typical tutorial
- Long theory, few examples
- Code you can't try
- No way to check yourself
StudyFame
- Programs with their output
- Run code in the browser
- MCQs to test what you learned
Your next skill starts with one program.
Pick a language, read the example, run it, and change it. That's how coding sticks.