It's a c language program that prints zeros and stars

Asked 2 years ago, Updated 2 years ago, 28 views

I wrote it like this * 0* 00* 000* 0000* 00000* It can be printed up to . y-axis symmetry

I want to do it like a picture. What should I do? I'll do the stretch, but I can't do the shrinkage again. Please tell me

c

2022-09-22 08:26

1 Answers

You can use the repetition statement as you used the increment operator. So, I think you can apply the method of increasing zero by one, and then do the repetitive statement while decreasing it the other way around.


2022-09-22 08:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.