In this easy coded program, you will learn how to print numbers from b to a using for loop, where the values of both will be taken from the user. --------------------------------------------------------------------------- Program to Print Numbers from b to a using for Loop /*Print Numbers from b to a- for Loop*/ #include<stdio.h> void main () { int a, b; printf( "Enter First Number: " ); scanf( "%d" , & a); printf( " \n Enter End Number: " ); scanf( "%d" , & b); for ( ; a >= b; a -- ) { printf( "%d \t " , a); } } Output Enter First Number : 9 Enter End Number : 3 9 8 7 ...
Start learning C Language in the easiest way with the most easy to understand program codes with tons of examples along with outputs at BEGINC.