If you want to print “Sorry” 100 times using C, here’s a simple program to achieve that using a loop.
C Program to Print “Sorry” 100 Times
Copy
#include <stdio.h>
int main() {
for(int i = 1; i <= 100; i++) {
printf(“Sorry\n”);
}
return 0;
}
Explanation of Code
- Loop (for loop): The loop runs from 1 to 100, ensuring that “Sorry” is printed exactly 100 times.
- printf(“Sorry\n”); – Prints “Sorry” with a newline (\n) so each word appears on a new line.
- Efficient Execution: This avoids manually writing 100 print statements.
When to Use This Code
- Practice Programming: A great way to learn loops in C.
- Fun & Pranks: Run this on a friend’s system for fun!
- Basic Automation: Automate repetitive printing tasks in C.
💡 Tip: Want “Sorry” printed on the same line? Use printf(“Sorry “); instead!

