Concept explainers
To write: a program to check whether the given number is positive or not.
Answer to Problem 3E
Checks if the entered number is positive or negative.
Explanation of Solution
Concept used: Use different syntax that is used to PRINT, INPUT IF…ELSE and do other operations while writing required BASIC program.
BASIC program to check if the given numbers are positive or not:
10 CLC
20 LET “
30 PRINT “Enter an integer: “;
40 FOR
50 IF
60 PRINT “Integer is Positive”
70 IFELSE
80 PRINT “Integer is Negative”
90 RETURN 0
100 END
Here line 30, prints different messages. Line 20 sets
Enter an integer:
Integer is positive.
Enter an integer:
Integer is negative.
Conclusion: Programs checks if the entered number is positive or negative.
Chapter 5 Solutions
Algebra: Structure And Method, Book 1
Additional Math Textbook Solutions
Intermediate Algebra for College Students (7th Edition)
Elementary and Intermediate Algebra: Concepts and Applications (7th Edition)
College Algebra with Modeling & Visualization (5th Edition)
Elementary Algebra
College Algebra with Modeling & Visualization (6th Edition)
- Algebra and Trigonometry (6th Edition)AlgebraISBN:9780134463216Author:Robert F. BlitzerPublisher:PEARSONContemporary Abstract AlgebraAlgebraISBN:9781305657960Author:Joseph GallianPublisher:Cengage LearningLinear Algebra: A Modern IntroductionAlgebraISBN:9781285463247Author:David PoolePublisher:Cengage Learning
- Algebra And Trigonometry (11th Edition)AlgebraISBN:9780135163078Author:Michael SullivanPublisher:PEARSONIntroduction to Linear Algebra, Fifth EditionAlgebraISBN:9780980232776Author:Gilbert StrangPublisher:Wellesley-Cambridge PressCollege Algebra (Collegiate Math)AlgebraISBN:9780077836344Author:Julie Miller, Donna GerkenPublisher:McGraw-Hill Education