🔒 Closed Mahirap na c++ assignment? post it here, and let me answer it!

Status
Not open for further replies.
ts buhay ka pa ba? ask lang kung paano lagyan ng border yung program tas nasa gitna yung mga outputs thanks.
 
tama po ba? tutbo c++
gagawa po ng diamond
#include <stdio.h>
#include <conio.h>void main()
{
clrscr();
int i,j,rows;
printf("\nEnter the number of rows");
scanf("%d", &rows);

for(i = 1; i <= rows; i++)
{
for(j = 1; j <= i; ++j)
{
printf("* ");
}
printf("\n");
}
getch();

}
 
Status
Not open for further replies.

About this Thread

  • 6
    Replies
  • 1K
    Views
  • 7
    Participants
Last reply from:
cie1998

Trending Topics

Online now

Members online
1,080
Guests online
1,258
Total visitors
2,338

Forum statistics

Threads
2,271,477
Posts
28,935,820
Members
1,238,632
Latest member
mhmmdhisrno5
Back
Top