Write a program to print the num. from 1 to 10 in Reverse Order with diff of 2 :-


//Print no. 1 to 10 in Reverse Order with diff. of 2

#include<stdio.h>
#include<conio.h>
void main()
{
int m;

for(m=10;m>=2;m=m-2)
 		
printf(" %d",m);
 		
getch();
}

Output:


10 8 6 4 2

			

Previous Next