[Solved] Printing a star (*) pattern with different decreasing number [closed]
[ad_1] #include<stdio.h> main() { int n=14, c, k, temp; temp = n; for ( c = 0 ; c <= 4 ; c++ ) { for( k = 2 ; k <= temp ; k++ ) printf(“*”); if(k<=13) { temp=temp-3; } else { temp=temp-2; } printf(“\t\t%d”,k-2); printf(“\n”); } return 0; } [ad_2] solved Printing a … Read more