Back To C++ Single Dimensional Arrays Index
//program to initialize an array of 10 elements and find smallest even and odd number #include
#include
void main() { clrscr(); int a[10]={1,20,190,4,7,8,9,10,11,13}; int i; int smalleven=a[9]; int smallodd=a[9]; for(i=0;i<10;i++) { if(a[i]%2==0) { if(a[i]