Thread: sequences
View Single Post
  #3 (permalink)  
Old January 29th, 2007, 08:27 AM
francescoandrio francescoandrio is offline
Registered User
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

for(int i=1; i<6; i++){
    for(int j=6-i; j>0; j--)
        printf("%d", j);
    printf("\n");
}

Best Regards,
Francesco Andrio
Reply With Quote