<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Quisiera que alguien me ayude con el siguiente codigo.Cuando el programa se ejecuta en  DOS la pantalla desaparece inmediatamente  a que se debe esto.<BR>
#include<iostream.h><BR>#include<math.h><BR>int fac(int a);<BR>main()<BR>{<BR> int n, m, c;<BR> cout<<"ingrese fac1  ";   cin>>n;<BR> cout<<"ingrese fac2  ";   cin>>m;<BR> <BR> c=(fac(n)/(fac(n-m)));<BR> <BR> cout<<c;<BR> <BR> <BR>}<BR>int fac(int a)<BR>{<BR> int i, fa;<BR> fa=1;<BR> <BR> for(i=1;i<=a;i++)<BR>
  fa=fa*i;<BR> <BR> return(fa);<BR> <BR>}<BR><BR><br /><hr />Get news, entertainment and everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' target='_new'>Check it out!</a></body>
</html>