Friday, 28 August 2020

Displaying even numbers:

To display even numbers follow the codings:

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

so the output will be displayed in even numbers only.

No comments:

Post a Comment

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...