answersLogoWhite

0

main()

{int nLength, nWidth, A, B;

printf ("enter length: ");

scanf ("%d", nLength);

printf ("enter Width: ");

scanf ("%d", nWidth);

for(A=1;1<=nWidth;A++)

printf ("*");

printf ("\n");

for (A = 2; A <= nLength -1; A++)

printf ("*");

for (B = 2; B <= nWidth -1; B++)

printf ("*");

printf ("\n");

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you write Square program using vb?

write a vb program to find the magic square


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


A c program to square matrix?

A C program to square matrix is a math problem. In the math problem you write down all the outer boundary values of matrix in a circle, then write down the inner value.


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?


Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)


How do you write a java program to find the square root of a number?

You can use the Math.sqrt() method.


How do you write a c program to find square of a no using call by value?

int square (int N) return N*N;


How do you write a program to find the area of a square in qbasic?

To write a program in QBASIC to find the area of a square, you first need to prompt the user to enter the length of one side of the square. You can then calculate the area by squaring the length (multiplying it by itself) and finally display the result. Here's a simple example: INPUT &quot;Enter the length of the side of the square: &quot;, side area = side * side PRINT &quot;The area of the square is: &quot;; area


Could you write your name and address on paper with an area of 0.01 square metres?

no


How could one write a password cracking program?

I'm not touching this with a ten-feet pole...


How do you write Square and cubes c program?

double square (double x) { return x*x; } double cube (double x) { return x*x*x; }