C is a super cool programming language that people have been using for over 50 years! It helps make computers do amazing things.
C is a special language that programmers use to talk to computers. It's been around for over 50 years, which is really old for computer stuff!
Many of the programs you use every day are made with C or languages that came from C. It's like the building blocks for lots of computer stuff!
Let's see some simple C programs in action! Click the buttons to run them.
This program says hello to you!
#include <stdio.h> int main() { printf("Hello, Friend!"); return 0; }
This program counts from 1 to 5!
#include <stdio.h> int main() { int i; for(i = 1; i <= 5; i++) { printf("%d ", i); } return 0; }
This program draws a square with stars!
#include <stdio.h> int main() { printf("*****\n"); printf("* *\n"); printf("* *\n"); printf("*****"); return 0; }
This program adds two numbers!
#include <stdio.h> int main() { int a = 3; int b = 5; int sum = a + b; printf("3 + 5 = %d", sum); return 0; }
Test what you've learned about C with this fun quiz!
Want to learn more about C? Check out these resources!
Join our fun coding club and learn how to create amazing things with C!