fork download
  1. #include <cstdio>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6. int i,j;
  7. for(i=5;i>=1;i--)
  8. {
  9. for(j=5;j>=i;j--)
  10. {
  11. printf("%d",j);
  12. printf("\n");
  13. }
  14. }
  15. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
5
5
4
5
4
3
5
4
3
2
5
4
3
2
1