Computer Science, asked by sahilhirve8, 11 months ago

Write a program for the following pattern:
1
1 0 1
1 0 0 0 1
for n number of lines
C language


sahilhirve8: i want the input

Answers

Answered by jeet04032008
0
#include <stdio.h>
int main ()
{
int i,j, rows;
printf ("enter number of Rows:");
scanf("%d",&rows);
for (i =1; i<=rows; ++i)
{
for (j =1; j<=i; ++j)
}
printf("\n");
}
return 0;
}
Similar questions