12th tutorial for right angle triangle patterns



This pattern is same as that we have seen in the tutorial 6 in which pattern no a9 is explained. But the difference is that there we have printed alphabets whereas here we have to print numbers.




Here in this program you will how to make program of pattern looks like




Here you can see pattern starts from 1 and increments to 22 till the maximum number of line you have entered (here it is 55555).


As you can see here the loop is same as first pattern (pattern no-a9)

The only change is in printf statement

Here we print integers so we used   “%d”

Printf(“%d”,i) = here i is initialize with 1 and it is incremented till the number entered by user.


{ 0 comments ... read them below or add one }

Post a Comment