Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int temp=1;
- for(int i=1; i<=7; i++, temp++){
- if(i>=1 && i<=4){
- for(int j=1; j<=5-i; j++){
- printf("%d", j);
- }
- }else{
- for(int j=1; j<=i-3; j++){
- printf("%d", j);
- }
- }
- printf("\n");
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment