Write an algorithm and draw a flow chart to read a number from the user and check whether the number is odd or even. If the number is odd calculate the area of circle otherwise calculate C = A3B [2 marks]

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question
Write an algorithm and draw a flow chart to read a number from the user and check whether the
number is odd or even. If the number is odd calculate the area of circle otherwise calculate C = A3B
[2 marks]
Transcribed Image Text:Write an algorithm and draw a flow chart to read a number from the user and check whether the number is odd or even. If the number is odd calculate the area of circle otherwise calculate C = A3B [2 marks]
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning