In this article we will learn how to write a Program to find odd or even from a list of elements using array in C programming
Odd or Even using Array in C Programming
More C Programs Visit This Link
Are You Looking For PHP Scripts/ Codes – Click Here
#include<stdio.h>
void main()
{
int sumo=0, sume=0, i=0, odd[5], even[5], a=-1, b=-1;
for(i=4; i<=17;i++)
{
if(i%2==0)
even[++a]=i;
else
odd[++b]=i;
}
printf("\n\tEven \t\tOdd");
for(i=0;i<5;i++)
{
printf("\n\t %d \t\t %d",even[i],odd[i]);
sume=sume+even[i];
sumo=sumo+odd[i];
}
printf("\n\t====================\n");
printf("Addition :%d %14d", sume,sumo);
getch();
}
- How to Integrate Paytm with WordPress (Contact Form 7) and PHP
- How to connect MySQL Remove server from Localhost or any server
- Payment Link Generator Instamojo | PHP | MySql |WebHook
- How to Integrate Cash Free Payment Gateway with PHP [Documentation]
- How to integrate PayU (PayU Money) with PHP [Documentation]
For Any Help Contact Us – http://quantainfotech.com/WhatsApp