Get Update on recent Technology & Programming

Wednesday, 15 November 2017

C Program to print numbers in reverse order with a difference of 2

Posted by   on Pinterest

C Program to print numbers in reverse order with a difference of 2




#include<stdio.h>

int main(void)

{

 int k=10;

 while(k>=2)

 {

  printf("%d\t",k);

  k=k-2;

 }

 printf("\n");

 return 0;

}




No comments:
Write comments

Hey, we've just launched a new custom color Blogger template. You'll like it -
Join Our Newsletter