Q. Print even no. b/w 2-20 ?

THE OUTPUT WOULD BE

 
#include<stdio.h>
#include<conio.h>
  void main( )
  {    clrscr();
        int i;
        for(i=2;i<=20;i+=2)
        { printf("%d\n",i);
        }
        getch( );
}

No comments:

Post a Comment