Write a program to print the following outputs using for loops.

/*
Write a program to print the following outputs using for loops.

B) * * * * *
* * * *
* * *
* *
*
*/


/**************************************************************/
/*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,k;
clrscr();
printf("*****Reverse Triangle*****\n");
for(i=1;i<=5;i++){
for(k=1;k<=i;k++)
printf("%3c",' ');
for(j=5;j>=i;j--){
printf("%3c",'*');
}
printf("\n");
}
getch();
}



Powered by Wufoo