Print Triangle As Numbers Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
      int n,i,j,a=1;
      clrscr();
      printf("\nEnter the no of rows : ");
      scanf("%d",&n);
      for(i=1;i<=n;i++)
      {
	  for(j=1;j<=i;j++)
	  {
	      printf("%d ",a);
	      a++;
	  }
	  printf("\n");
      }
      getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming