xxxxxxxxxx
#include<iostream>
using namespace std;
main()
{
int squareHeight, squareWidth;
cout<< "Enter Height: ";
cin>> squareHeight;
cout<< "Enter Widht: ";
cin>> squareWidth;
for(int width=1; width<=squareHeight; width++)
{
if(width <= 1)
for(int width=1; width<=squareWidth; width++)
{
cout<< "*";
}
else if(width<squareHeight)
{
cout<< endl;
for(int width2=1; width2<=squareWidth; width2++)
{
if(width2==1 || width2==squareWidth)
cout<< "*";
else
cout<< " ";
} //end of for variable width2
}// end of else if
else
{
cout<< endl;
for(int width3=1; width3<=squareWidth; width3++)
{
cout<<"*";
}//end of for having variable width3
}// end of else
}// end of first for loop
}// end of main function
xxxxxxxxxx
#include<iostream>
using namespace std;
main()
{
int squareHeight, squareWidth;
cout<< "Enter Height: ";
cin>> squareHeight;
cout<< "Enter Widht: ";
cin>> squareWidth;
for(int width=1; width<=squareHeight; width++)
{
if(width <= 1)
for(int width=1; width<=squareWidth; width++)
{
cout<< "*";
}
else if(width<squareHeight)
{
cout<< endl;
for(int width2=1; width2<=squareWidth; width2++)
{
if(width2==1 || width2==squareWidth)
cout<< "*";
else
cout<< " ";
} //end of for variable width2
}// end of else if
else
{
cout<< endl;
for(int width3=1; width3<=squareWidth; width3++)
{
cout<<"*";
}//end of for having variable width3
}// end of else
}// end of first for loop
}// end of main function
xxxxxxxxxx
void prReplyException(char*errCode, char*errText)
{
smne_reply_Error_def smneasnReply;
short rc;
char error_exception_code[50];
char error_description[80];
char logTxt[90];
short chcnt=0;
msgTxtDef