https://alotcoding.blogspot.com/2019/02/wap-to-print-all-even-no-in-array.htmlhttps://alotcoding.blogspot.com/2019/02/wap-to-print-all-even-no-in-array.html
https://alotcoding.blogspot.com/2019/02/program-of-array-will-recurse-all.html
/*...WAP to print all odd no. in an array...*/
#include<stdio.h>
#include<conio.h>
void main()
{
int arr[10],i;
printf(" Enter any 10 number");
for(i=0;i<10;i++)
{
scanf("\n %d",&arr[i]);
}
printf("\n All number are odd");
for(i=0;i<10;i++)
{
if(arr[i]%2!=0)
{
printf("\n %d",arr[i]);
}
}
getch();
}
in put:
1
2
3
4
5
6
7
8
9
10
out put:
2
4
6
8
10
No comments:
Post a Comment