Answer to Question #13446 in C++ for Peter

Question #13446
Write a program to generate a following structure:
@@@@@
@@@@@
@@@@@
@@@@@
@@@@@
1
Expert's answer
2012-08-21T11:15:26-0400
#include "stdafx.h"
#include<stdio.h>
#include<conio.h>
int
main()
{
int num,row,column;
printf("Enter loop repeat number(rows):
");
scanf("%d",&num);
for(row=1; num>=row;
row++)
{
for(column=1; column<=num;
column++)
printf("@");
printf("\n");
}
getch();
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS