1
B B
3 3 3
D D D D
5 5 5 5 5
print in c
Answers
Answered by
0
#include <stdio.h>
int main()
{
for(int i = 1; i <= 5; i++) {
for(int j = 1; j <= i; j++) {
if(i % 2 == 0)
printf("%c ", (i + 'A' - 1));
else
printf("%d ", i);
}
printf("\n");
}
return 0;
}
Attachments:
Answered by
1
i will just say the main structure
void main()
{
clrscr();
printf(“1\nB B\n3 3 3\nD D D D\n5 5 5 5 5”);
getch();
}
void main()
{
clrscr();
printf(“1\nB B\n3 3 3\nD D D D\n5 5 5 5 5”);
getch();
}
Similar questions