#62 Number Alphabet pattern in c language #c #cprogramming #code #shorts

preview_player
Показать описание
Number Alphabet Pattern in c programming language:

*the code is in comments box and telegram channel
contact:

instagram id:

telegram link:

C programming telegram channel:

C++ program telegram channel:

facebook id: Sayani Mondal

Gmail contact:

photography instagram account:
@sayani_9836

#shorts #cprogramming #code #coder #clanguage #pattern #codes #short #subscribe
Рекомендации по теме
Комментарии
Автор

/*
Number Alphabet Pattern :-

1
A B
2 3 4
C D E F
5 6 7 8 9
G H I J K L
*/
#include<stdio.h>

void main()
{
int num, r, c;
int i = 1;
char ch = 'A';

printf("\t Tuni Technical Hacker \n");

printf("Enter the number of rows : ");
scanf("%d", &num);
printf("\n");

for (r = 1; r <= num; r++)
{
for (c = 1; c <= r; c++)
{
if (r % 2 == 0)
{
printf(" %c", ch++);
}
else
{
printf(" %d", i++);
}
}
printf("\n");
}
return 0;
}

TuniTechnicalHacker
Автор

the code is in comments box and telegram channel

TuniTechnicalHacker
welcome to shbcf.ru