Printing 1 to 1000 without loop or conditionals- C Programming

Task: Print numbers from 1 to 1000 without using any loop or conditional statements. Don’t just write the printf()  statement 1000 times.
Program Code 1:

 
Program Code 2:

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.