i want to print the same pattern in this question but counting instead of 0 and 1…but it is showing error in my code…please rectify it
Pattern to print counting
what is the question ?
i dont have problem with me , thats why asking to u
sir i want to print counting starting from 1 but in this program it start printing the counting from 1 in each line
ok so u want pattern link this
1
2 3
4 5 6
7 8 9 10
right?
i want to print like this. for eg: n=5
1
23
456
78910
1112131415
yes sir. i want to print like this
just put int val=1; out of the loop.
and rest everything is correct
1 Like
but what if i want to add some space in each number ??? just to separate each number
i got my answer to add some space sir…thank u so much.