heryvandoro

Untitled

Dec 1st, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int temp=1;
  5. for(int i=4; i>=1; i--){
  6. for(int j=1; j<=i; j++){
  7. printf("%d", j);
  8.  
  9. }
  10. temp++;
  11. if(temp==5){
  12. i=5;
  13. }
  14. printf("\n");
  15. }
  16. getchar();
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment