use:
[code='c']
for (int myHeight =1;myHeight <width; myHeight++)
{
for (int myBase=1;myBase<length;myBase++)
{
if(myBase==1 || myBase==length-1 )
printf(c);
else if(myHeight==1 || myHeight==width-1)
printf(c);
else
printf(" ");
}
printf("\n");
}
[/code]

WaltP commented: Help the write their own program! They learn nothing if you write it for them! -2

u can also getch() but it doesnot work in some compiler.

iamthwee commented: So why recommend it? -2

make some changes...
[code]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <html>

  <head>

  <title> Test </title>

  <script language='javascript'>

  redirTime = "5000";

  redirURL = "b.html";

  function redirTimer() {

  self.setTimeout("self.location.href=redirURL;",redirTime);
  //navigator.location.href="b.html";

  }

  </script>

  </head>

  <body>

  <script language='javascript'>

  redirTimer();  
  </script>

  </body>

  </html>

[/code]

if u r looking for free dev envi go for linux c c++ java gtk++ etc.

Ezzaral commented: See forum rules on "text-speak". You should understand this after 125 posts. -1