Welcome to 1printf(), your ultimate destination for C, C++, Linux, Data Structures, and Microcontroller programming! π
πΉLearn advanced coding techniques in C& C++
πΉMaster Linux internals & shell scripting
πΉDeep dive into Data Structures & Algorithms
πΉExplore Embedded Systems & Microcontrollers (8051,UART, RTOS)
πΉGet hands-on coding tutorials, project ideas,and interview preparation tips
Whether you're a beginner or an experienced programmer, this channel will help you
#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)
#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 ", i + 64);
}
printf("\n");
}
return 0;
}
π· Square Alphabet Pattern (Row-wise)
#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("%c ", i + 64);
}
printf("\n");
}
return 0;
}
π· Square Alphabet Pattern (Column-wise)
#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("%c ", j + 64);
}
printf("\n");
}
return 0;
}
π· Reverse Square Number Pattern (Row-wise)
#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("%d ", i);
}
printf("\n");
}
return 0;
}
π· Reverse Square Number Pattern (Column-wise)
#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("%d ", j);
}
printf("\n");
}
return 0;
}
π· Square Number Pattern (Row-wise)
#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("%d ", i);
}
printf("\n");
}
return 0;
}
π· Square Number Pattern (Column-wise)
#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("%d ", j);
}
printf("\n");
}
return 0;
}
Comments
Post a Comment