fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int i,j,n;
  5. scanf("%d",&n);
  6. for(i=1;i<=n;i++){
  7.  
  8. for(j=n;j>=i;j--){
  9. printf("* ");
  10. }
  11. printf("\n");
  12. }
  13. return 0;
  14. }
  15.  
  16.  
Success #stdin #stdout 0s 5320KB
stdin
5
stdout
* * * * * 
* * * * 
* * * 
* * 
*