EasyManuals Logo
Home>Casio>Calculator>fx-CG50

Casio fx-CG50 User Manual

Casio fx-CG50
667 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #588 background imageLoading...
Page #588 background image
17-29
9. Sample Scripts
Sample 1: Conditional Branching
Purpose
With conditional branching a condition is evaluated and then
processing follows one of multiple paths in accordance with
the evaluation result.
The example below is for a simple “if... else...” statement.
Description
a=int(input("a="))
Accepts user input while the py script is running.
Input values are converted to integers and define variable a.
if a<5: If the variable a is less than 5,
print("a<5") outputs the text string a<5.
else: Otherwise (if variable a is 5 or greater),
print("a>=5") outputs the text string a>=5.
Execution Result (when a=1 and a=10 are input)
(1) If you input a = 1 (2) If you input a = 10
b ba
w w

Table of Contents

Other manuals for Casio fx-CG50

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Casio fx-CG50 and is the answer not in the manual?

Casio fx-CG50 Specifications

General IconGeneral
BrandCasio
Modelfx-CG50
CategoryCalculator
LanguageEnglish

Related product manuals