#include
"dos.h"
#include
"iostream.h"
main()
{
//AIM : finds the DOS opearating system version, ver command does
//not do. on Win 95/98/NT it just says
win version not the DOS version
REGS i,o;
int h,l;
i.h.ah=0x30;
int86(0x21,&i,&o);
h=o.h.ah;
l=o.h.al;
cout<<"\nDos Ver :
"<<l<<"."<<h;
return 0;
}