How can I write a program in c language that calculates and produces these 2 columns sequence numbers using looping statement?
Enter a number: 5
Sequence: 1, 2, 3, 4, 5
Squared: 1, 4, 9, 16, 25

Do you want to continue? Y/N

N
​

Q&A Education