heryvandoro

Untitled

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