TO DISPLAY FIRST ‘N’ EVEN NUMBERS IN REVERSE ORDER
#include<stdio.h>
Void main()
{
Int num;
Printf(“how many even numbers:”);
Scanf(“%d”,&num);
Printf(“first %d numbers in reverse order:\n”,num);
Num=2*num;
For(;num>1;num-=2)
Printf(“%d\t”,num);
Getch();
No comments:
Post a Comment