Computer Practical
Computer Practical
Date:
Program no: 4 5t
Void mau C )
cu >a
(K 1 k =n- 1 k ++ )
temp a CK,
4
Teachers sign:
Program no: 4 Date:
Aim of project:
Programming code:
I:tJ : a
a Cit 1]
a
Iamp
lout
Aroay
Teachers sign:
Date:
Program no:
Aim of project:
Programming code:
Qutpu
Bui 25
alanu u the JUy
2
Sonting
/ 4 / 2 4
Teachers sign:
vojd mainl)
cout <1n";
)
fon(i=o; <4,i++)
3
3 n"!
coutk" Th ad dilona/ malrix
cout« e[iJ]K\E
3
Write a program to find the smallest number of an array ?
SoLUTION
#indudeciostream.h>
#include<stdio.h>
# include<conio.h>
void main( )
small = a[o] :
pos = i;
cout << endl << "The smallest of the entted no is << small ;
cout << endl << "The position of the smallest no is << pos+1;
getch( ) :