Write C Program to Print Right Half Number Pyramid Pattern
Example
#include<stdio.h>
int main() {
int i,j ,row;
printf("enter the number of row");
scanf("%d",&row);
for(i=1; i<=row; i++)
{
for(j=1;j<=i;j++)
{
printf("%d",i);
}
printf("\n");
}
getch();
}
Write C Program to Print Right Half Number Pyramid Pattern
Related Post :-
No comments:
Post a Comment