#include "stdafx.h"
#include "iostream"
#include "conio.h"
using namespace std;
int main()
{
int row, c, n, temp;
printf("Enter the number of rows in
pyramid of stars you wish to see=");
scanf("%d",&n);
temp = n;
for ( row = 1 ; row <= n ; row++ )
{
for ( c =
1 ; c < temp ; c++ )
printf("
");
printf("*");
}
getch();
}
No comments:
Post a Comment