This program is about print the pattern as triangle up to the given limits using For Loop
#include<stdio.h> int main() { int i,n,a; printf("\nEnter the value:"); scanf("%d",&a); for(i=0;i<=a;i++) { printf("\n"); for(n=1;n<=(a-i);n++) { printf(" *"); } } return 0; }To download raw file Click Here
Enter the value:5 * * * * * * * * * * * * * * *
Learn All in Tamil © Designed & Developed By Tutor Joes