Posted by : Unknown
Monday, February 1, 2016
*****
*****
*****
Ans:
#include<stdio.h>
#include<conio.h>
int main()
{
int num,r,c;
printf("NOF rows: ");
scanf("%d",&num);
for(r=1; num>=r; r++)
{
for(c=1; c<=num; c++)
printf("*");
printf("\n");
}
return 0;
}
#include<conio.h>
int main()
{
int num,r,c;
printf("NOF rows: ");
scanf("%d",&num);
for(r=1; num>=r; r++)
{
for(c=1; c<=num; c++)
printf("*");
printf("\n");
}
return 0;
}
*************************
NOF rows: 5
*************************
NOF rows: 5
*****
*****
*****
*****
*************************
Related Posts :
- Back to Home »
- Star Patterns »
- 01.Rectangle pyramid as using *'s as shown below.