Advertisement
Lisaveta777

3rdMay2023

May 3rd, 2023
756
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #define SIZE 6
  3.  
  4. int main()
  5. {
  6. int i,j,value =1;
  7.  
  8. for(i=0;i<SIZE;i++)
  9. {
  10. for(j=0;j<i+1;j++)
  11. {
  12. printf("%d",value);
  13. if(value%2)
  14. value--;
  15. else
  16. value++;
  17. }
  18. printf("\n");
  19. }
  20.  
  21. return 0;
  22. }
  23.  
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement