C Programming to display number patterns in right angle

Share This Topic:

Course Details

Field of Study: Computer Science and Engineering
Course Name: C Programming
Course Description: C Programming to display number patterns in right angle triangle

Code
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n;
printf(“Enter the number\n”);
scanf(“%d”,&n);
for(int i=n;i>=1;i–)
{
for(int j=1;j<=i;j++)
{
printf(“%d”,j);
}
printf(“\n”);
}
getch();
}

Share this article:
Previous Post: MOSFET Current Steering

October 31, 2014 - In Academics, Electronics

Next Post: C programming code to sum numbers from 1 to n

December 2, 2014 - In Academics, Computers

Related Posts

Leave a Reply

Your email address will not be published.