C Program Code to display selected numbers within a limit


The following C program code displays selected no.s within a limit. Here the sample code displays even no.s within a limit. You can modify the code to make it work for selecting other numbers. 
For eg. If you want to print the multiples of 3 within a limit, you will just have to change the datatype of the variables into float and change the if condition into (i % 3 == 0).


Comments