60 576
Assignments Done
97,9%
Successfully Done
In April 2018

Answer to Question #13446 in C++ for Peter

Question #13446
Write a program to generate a following structure:
@@@@@
@@@@@
@@@@@
@@@@@
@@@@@
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions