answersLogoWhite

0

1 CLS

2 PRINT "Please to tell me the length of the side of the square."

3 INPUT S

4 PRINT

5 PRINT "The perimeter of the square is "; 4 * S

6 PRINT

7 PRINT "The area of the square is "; S ^ 2

8 PRINT

9 PRINT "That was truly a total blast. Would you like to play again ? 'Y' or 'N' ."

10 INPUT A$

11 IF A$ = "Y" or A$ = "y" then PRINT "Goody! " : GOTO 2

12 IF A$ = "N" or A$ = "n" then PRINT "Well OK then. Goodbye": END

13 PRINT: PRINT "Please to type a 'Y' to play again, or a 'N' to quit for now."

14 GOTO 10

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

Write a program that prompts the user to input the length and width of a rectangle and then prints the rectangle's area and perimeter?

PRINT "Give me the rectangle's length.": Input L PRINT "Give me the rectangle's width.": Input W PRINT "The rectangle's area is "; L x W PRINT "The rectangle's perimeter is "; 2 x (L + W) PRINT "You've been a great audience. I'm here til Thursday. Don't forget to tip your waiter. Have a nice day."


Program to print no divisible by 7?

cls input "enter a no"; num if num mod 14= num then print "no is divisible" else print "not divisible" end if end


What a program that accepts two numbers and tell whether the product of the two number is equal to or greater than 1000?

You can create a simple program in Python to achieve this. The program will prompt the user to input two numbers, calculate their product, and then check if the product is equal to or greater than 1000. If it is, the program will print a message confirming that; otherwise, it will indicate that the product is less than 1000. Here's a quick example: num1 = float(input("Enter the first number: ")) num2 = float(input("Enter the second number: ")) if num1 * num2 >= 1000: print("The product is equal to or greater than 1000.") else: print("The product is less than 1000.")


Write the program witch show that the number is even or odd?

In BASIC: 10 INPUT X: IF X = 999 THEN STOP ELSE PRINT X; 20 IF X/2 = INT(X/2) THEN PRINT "EVEN" ELSE PRINT "ODD" 30 GOTO 10


Write missing expression in the program below which would print the area of circle r int input Enter the circle radius?

Area of any circle = pi*radius squared

Related Questions

Write a program that prompts the user to input the length and width of a rectangle and then prints the rectangle's area and perimeter?

PRINT "Give me the rectangle's length.": Input L PRINT "Give me the rectangle's width.": Input W PRINT "The rectangle's area is "; L x W PRINT "The rectangle's perimeter is "; 2 x (L + W) PRINT "You've been a great audience. I'm here til Thursday. Don't forget to tip your waiter. Have a nice day."


What is the program to input name and print pass or fail?

Input "enter name" ;n$ input "enter marks" ; m ifm > 40 then print n$, "pass" else print n$, "fail"


How do you draw a flowchart to get the sum of two numbers?

Starts Input a,b Result=(a-b)*(a-b) Print"square of difference=",result


Program to print no divisible by 7?

cls input "enter a no"; num if num mod 14= num then print "no is divisible" else print "not divisible" end if end


How do you write a program to find the area and perimeter of a rectangle?

CLS PRINT "PROGRAM: Calculate both perimeter/area of rectangle" PRINT INPUT " Length"; length INPUT "Breadth"; breadth PRINT PRINT "Perimeter: "; 2 * (length + breadth) PRINT " Area: "; length * breadth END


C program to print mark sheet of 5 subjects and the number of students is user input?

hhh


Write a program in 'C' language to accept 6 strings as input and print them in lexicographic?

(ab)*b


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


Write a program to print whether the letter is vowel or not in BASIC?

vowels$ = "aeiou" CLS PRINT "PROGRAM: Find if letter is a vowel or not" PRINT INPUT "Type a single alphabet letter: (a-z)/and, then, press Enter key"; aLetter$ PRINT PRINT "Letter "; aLetter$; IF INSTR(vowels$, LCASE$(aLetter$)) THEN PRINT " is a vowel." ELSE PRINT " is NOT a vowel." END


How do you prepare a program in basic to display the word and the number of letters in it when is given as input?

10 cls 20 input"enter word";word$ 30 print word$ 40 print len(word$) 50 end this program is for GW BASIC for other BASIC's the line numbers are optional.


How do you write a pseudocode program that commutes and displays a 15 percent tip when you input the price of the meal?

input price calc tip = price*0.15 print tip


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

a triangle then a square :)