https://alotcoding.blogspot.com/2019/02/program-of-array-will-recurse-all.html
/*..Enter 10 no.,&find your even nu. ..*/
#include<stdio.h>
#include<conio.h>
void main()
{
int arr[10],i;
printf("Enter any 10 values");
for(i=0;i<10;i++)
{
scanf("\n %d",&arr[i]);
}
printf("\n All even no. are ");
for(i=0;i<10;i++)
{
if(arr[i]%2==0)
{
printf("\n %d",arr[i]);
}
}
getch();
}
out put:
2
34
23
45
43
56
34
32
6
8
Input:
2
34
56
34
32
6
8
By :Indra kumar
/*..Enter 10 no.,&find your even nu. ..*/
#include<stdio.h>
#include<conio.h>
void main()
{
int arr[10],i;
printf("Enter any 10 values");
for(i=0;i<10;i++)
{
scanf("\n %d",&arr[i]);
}
printf("\n All even no. are ");
for(i=0;i<10;i++)
{
if(arr[i]%2==0)
{
printf("\n %d",arr[i]);
}
}
getch();
}
out put:
2
34
23
45
43
56
34
32
6
8
Input:
2
34
56
34
32
6
8
By :Indra kumar
No comments:
Post a Comment