Yesterday I went for an interview where I have been asked to create a program to find largest and smallest among 5 numbers without using array.
I know how to create
void main() { int a,b,c,d,e,max; max=a; if(b/max) max=b; if(c/max) max=c; if(d/max) max=d; if(e/max) max=e; cout<<"Maximum is"<