C

Sunday, 27 August 2017

Program To Print All Even Numbers

#include<stdio.h>
#include<conio.h>
void main(void)
{
int i=2;
clrscr();
while(i<=10)
{
if(i%2==0)
{
printf("\nThe value is =%d",i);
}
i++;
}
}



No comments:

Post a Comment

Write a program to draw a circle using mid-point circle drawing algorithm.

#include<iostream.h> #include<graphics.h> #include<conio.h> void drawcircle(int x0, int y0, int r) {         ...