Akash the die heart fan of AR Rahman went to the live concert happened in Bangalore with his family members.The event management firm responsible for the event arranged the seats for the audience in descending order of maximum number of tickets booked for single family.
#include <stdio.h>
int main()
{int nooffamilymembers;
scanf("%d",&nooffamilymembers);
int r=nooffamilymembers;
for(int i=1;i<=nooffamilymembers;i++){
for(int j=1;j<=r;j++){
printf("%d ",r);
}r--;
printf("\n");}
return 0;
}
Comments
Post a Comment