Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // a pattern like right angle triangle with number increased by 1//
- #include<stdio.h>
- int main()
- {
- int i,j,n,no=0;
- printf("Enter any number :");
- scanf("%d",&n);
- for(i=1; i <= n ;i++)
- {
- for(j=1;j<=i;j++)
- {
- no++;
- printf("%d",no);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement