Skip to main content

Posts

Showing posts with the label Numbers from b to a using while Loop

C Program to Print Numbers from b to a using while Loop

In this easy coded program, you will learn how to print numbers from b to a using while loop, where the values of both will be taken from the user. --------------------------------------------------------------------------- Program to Print Numbers from b to a using while Loop /*Print Numbers from b to a- while Loop*/ #include<stdio.h> void main () {     int a, b;     printf( "Enter First Number: " );     scanf( "%d" , & a);     printf( " \n Enter End Number: " );     scanf( "%d" , & b);     while (a >= b)     {         printf( "%d \t " , a);         -- a;     ...