Write a C program to print the following pattern output.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
#include<stdio.h> #include<conio.h> main() { int i,j,n; printf("\n enter how many lines"); scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=i;j++) { printf("\t%d",j); } printf("\n"); } getch(); }
Output:
Write a C- Program To Count The Lines, Words, Characters In A Given Text.
Write a C program to print the following pattern output.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Short Notes :Lines of Code (LOC)
Write a C program to check a year is leap year or not.
Write a C program to find a number is AMSTRONG or NOT.