Skip to main content

Posts

Featured

C Pattern Programs: Square Number and Alphabet Patterns Explained

πŸ”· Square Star Pattern πŸ“‹ Copy Code #include <stdio.h> int main() { int num; printf("Enter the number:\n"); scanf("%d", &num); for(int i = 1; i <= num; i++) { for(int j = 1; j <= num; j++) { printf("* ");//keep"* " } printf("\n"); } return 0; } πŸ”· Reverse Square Alphabet Pattern (Column-wise) πŸ“‹ Copy Code #include <stdio.h> int main() { int num; printf("Enter the number:\n"); scanf("%d", &num); for(int i = num; i >= 1; i--) { for(int j = num; j >= 1; j--) { printf("%c ", j + 64);//%c for Character and 64 will be ASIIC VALUE } printf("\n"); } return 0; } πŸ”· Reverse Square Alphabet Pattern (Row-wise) πŸ“‹ Copy Code #include <stdio.h> int main() { int num; ...

Latest Posts

C Program to Reverse a Number Using While Loop

C Program to Find Factorial of a Number

1. Two Sum in C Leet Code

C Program to Print Prime Numbers Between Two Numbers

C Program to Print Fibonacci Series Up To N

C++ Program to Find Fibonacci Number

C Program to Check Leap Year

C Program to Check Prime Number Using Efficient Logic

Menu Driven Calculator in C++ Using Switch Case (Beginner Project)

How to Reverse an Array in C Programming (With Example)

How to Check Palindrome String in C Programming (With Example)

C++ Program to Find Factorial Using Inline Function

C++ Program to Convert Celsius to Fahrenheit Using Inline Function

C++ Program to Swap Two Numbers Using Inline Function

C++ Program to Calculate Simple Interest Using Inline Function

πŸŒ™