Skip to main content

Posts

Featured

List odd and even number from given array

Program: #include<stdio.h> void check(int num); int main() {     int arr[5]={1,2,3,4,5};     int  i;     for(i=0;i<5;i++)     {         //scanf("%d",&arr[i]);         check(arr[i]);      } }     void check(int num )     {         if(num%2==0)         {             printf("The array elment %d is even\n",num);         }         else         {             printf("The array elment %d is odd\n",num);         }     }     Output: The array elment 3 is odd                          ...

Latest posts

Decimal to binary conversion using c

Reverse element of the given array.

C Program to Find the Largest Two Numbers in a given Array

Hello World