jeudi 22 novembre 2018

Is it possible to output the numpad's pattern using loops?

I just started learning C (coding in general) a few months ago. Earlier today when I was in class, I looked at the numpad and wondered whether I would be able to replicate the pattern using nested loops in C.

7 8 9
4 5 6
1 2 3 // This pattern.

I tried to do it myself for a bit, using for loops primarily. Thanks for any help.

Aucun commentaire:

Enregistrer un commentaire