Write a Program to print numbers in the reverse order with a difference of two :-


//Print no. in reverse order with diff. of two

#include<stdio.h>
#include<conio.h>
void main()
{
int i=10;

while(i>=2)
{
printf("%d",i);
i=i-2;

printf("\n");
getch();
}
}

Output:


10
8
6
4
2

			

Previous Next