searching - { if(a[k]==i) {f=1; cout<<"the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include<iostream.h> void main() { int i,j,k,f=0,a[10]={2,3,5,2,66,78,99,77,54,12}; cin>>i; for(k=0;k<10;k++)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { if(a[k]==i) {f=1; cout<<"the number at "<<k; }} if(f==0) cout<<"not found"; }...
View Full Document

This note was uploaded on 10/16/2010 for the course ENG 2266e taught by Professor Aliraqi during the Spring '10 term at 4.1.

Ask a homework question - tutors are online