Please write the code for the following
Attachments:
Answers
Answered by
0
Explanation:
#include <stdio.h>
int main()
{
int i, j, N;
clrscr();
printf("Enter N: ");
scanf("%d", &N);
for(i=1; i<=N; i++)
{
for(j=1; j<=i; j++)
{
printf("%d", j);
}
printf("\n");
}
getch();
return 0;
}
Similar questions
Physics,
6 months ago
English,
1 year ago
Computer Science,
1 year ago
Environmental Sciences,
1 year ago