#include <iostream>#include <ctype.h>using namespace std; int main() { int a; int min; cin>>min; while(cin>>a) { if(a<min) min=a; } cout<<"Min: "<<min; return 0;}
54 5 5 6 2 354 64 -9 564 -6546 g h h
Min: -6546
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!