Computer Science, asked by antonyroshan23, 1 year ago

write a program using nested loop to produce the following design:
(a) A
A B
A B C
A B C D
A B C D E
A B C D E F
(b) & & & & & & &
& & & & &
& & &
&
(c) &
& &
& &
& &
& &
& & & & & & & &

Answers

Answered by siddhartharao77
8
1. #include<stdio.h>
   int main()
{
char i,j;
for(i = 'A';i<='Z';i++)
{
printf(" ");
printf("\n");
for(j = 'A'; j<=i; j++)
{
printf("%c",j);
}
}
return 0;
}


(2) # include<stdio.h>
     int main()
{
  int i = 7,j,k;
for(j = 1;j <= 4;j++,i = i-2)
{
for(k = 1;k <= i; k++)
printf("& ");
printf("\n");
}
return 0;
}



(3) Kindly check the 3rd question.
Answered by aswinbalaji780
0

Answer:

asdfghjklzxcvbnmpoiuytrewq

Similar questions