answersLogoWhite

0


Best Answer

1 PRINT "Kindly enter your next number, Master, or 'x' to end and total them up."

2 INPUT a$: IF a$ = "x" or a$ = "X" then GOTO 10

3 K = VAL(a$)

4 If K<0 then neg=neg+1: PRINT: GOTO 1

5 If K>0 then pos=pos+1: PRINT: GOTO 1

6 If K=0 then Z=z+1: PRINT: GOTO 1

10 PRINT: PRINT "Thank you, Master. I cannot express the joy that this exercise

has brought me. Here are your results: "

11 PRINT: PRINT "The number of positive numbers you entered was "; pos; "."

12 PRINT: PRINT "The number of negative numbers you entered was "; neg; "."

13 PRINT: PRINT "The number of zeros you entered was "; Z; "."

15 PRINT: PRINT: PRINT "Would you like to play again, Master ?"

16 PRINT "Kindly touch 'x' if no, or any other key if yes. I can hardly wait."

17 Input a$: IF a$ <> "X" and a$ <> "x" then GOTO 20

18 PRINT: PRINT "It has been my pleasure to cavort with you today, Master."

19 PRINT "Y'all come back now, y'hear !" : END

20 PRINT: CLS: PRINT "Oh GOODY! I love this game!"

21 pos=0: neg=0: Z=0

22 GOTO 1

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to enter the numbers till the user wants and at the end it should display the count of positive and negative and zeros entered without using array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the relationship between neggative positive and positive negative?

Negative number and positive numbers are all numbers. Negative numbers are just positive numbers multiplied by -1.


When multiplying numbers what do you do with the positive and negative signs?

Negative * positive = negative Positive * positive = positive Negative * negative = positive


What is the sign of the product of 47 negative numbers and three positive numbers?

Negative because product of 47 negative numbers is negative and product of three positive number is Positive , so negative*positive = Negative.


Is the product of 33 negative numbers and 2 positive numbers a positive number or a negative number?

(The product of 33 negative numbers) x (2 positive numbers) = (negative sign) x (positive sign) = negative sign


Is the product of positive numbers and 7 negative numbers a positive number or a negative number?

negative


Is the product of 7 positive numbers and 6 negative numbers a positive or negative number?

positive


What are the rules for multiplying integers?

Positive x Positive =Positive Positive x Negative= Negative Negative x Positive= Negative Negative x Negative =Positive


Why are negative numbers in brackets positive but positive numbers in brackets are not negative?

'cuz


What is the product of two negative and three positive numbers?

It is positive. Any product of an even number of negative numbers will be positive, regardless of how many positive numbers you have. Similarly any product of an odd number of negative numbers will be negative, regardless of how many positive numbers you have.


Are the product of two opposite numbers positive?

No. The product of two opposite numbers is always negative. Negative x positive = negative and Positive x negative = negative


Where can you find positive and negative numbers in your house?

Positive numbers, on your door. Negative in your freezer.


Are negative numbers bigger or positive?

Positive numbers are larger than negative ones.