C Programming Tutorial

 
 
 
 

Image

#include <stdio.h>
#include <conio.h>

void main(){
     int i,j,num;
     clrscr();
     printf(\"*****RightAngle Triangular Format*****\\n\");
     printf(\"Enter number : \");
     scanf(\"%d\",&num);
     for(i=1;i<=num;i++){
         for(j=1;j<=i;j++){
             printf(\"%5d\",i);
       }
       printf(\"\\n\");
        }
     getch();
}

 
 
Didn't find what you were looking for? Find more on Program to display number triangle