Write a program to print the following outputs using for loops.
/*
Write a program to print the following outputs using for loops.
A) 1
2 2
3 3 3
4 4 4 4...
*/
/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/
#include
#include
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();
}