EasyManua.ls Logo

Casio FX-890P User Manual

Casio FX-890P
126 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 #89 background imageLoading...
Page #89 background image
89
}
The first four operations are addition, subtraction, multiplication and division. The
value for “e” will be the modulus (remainder) of 49 divided by 12.
When you execute the program, the display should appear as follows:
.R U N . .
>run
61 37 588 4 1
>_
The following statement in the first line of the program declares that all five variables
will be for the storage of 16-bit integers.
Short a,b,c,d,e;
As you can see, you can use a single declaration for multiple variables by separating
the variables by commas.
In each of the following lines, the computer performs the calculation and assigns the
result to the corresponding variable. Then, the result is displayed by including the
variable as an argument in the printf() statement.
Using arrays
An array is a variable with depth. With an array, you use a single name followed by a
number to indicate the variable name. For example, a[0], a[1], a[2], a[3], a[4]
represent five memory areas within an array called “a[5]”. Note that the values
following the name must be enclosed within brackets.
With arrays, declaration of repetitive variables becomes very simple. Let’s go back to
our original program where we used variables “a” to “e” to store calculation results,
and use an array” a[5]” instead.
/* Arithmetic Operations 2 */
main(){
short a[5];
a[0]=49+12;printf(“%d “,a[0]);
a[1]=49-12;printf(“%d “,a[1]);
a[2]=49*12;printf(“%d “,a[2]);
a[3]=49/12;printf(“%d “,a[3]);
a[4]=49%12;printf(“%d¥n“,a[4]);
}
Note that like in BASIC, an array can have multiple dimensions. The array a[3][3]
would represent a total of nine values:
a[0][0] a[0][1] a[0][2]
a[1][0] a[1][1] a[1][2]
a[2][0] a[2][1] a[2][2]

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Casio FX-890P and is the answer not in the manual?

Casio FX-890P Specifications

General IconGeneral
BrandCasio
ModelFX-890P
CategoryDesktop
LanguageEnglish

Summary

Unit Configuration

Operational Functions

Details the primary keys and their functions, including power, shift, and numeric keys.

Keyboard Layout

Describes the arrangement of keys and how to access different functions.

Power and System Features

Power Supply and Battery Replacement

Provides instructions for replacing the calculator's batteries.

Fundamental Operation Modes

CAL Mode

Describes the primary calculation mode active upon power-on.

Formula Storage Function

Explains how to store and recall mathematical formulas for repeated calculations.

Programming Modes

Introduces BASIC, C, CASL, and Assembler modes for programming.

Calculation Functions

Manual Calculation Input and Correction

Guides on entering and correcting arithmetic and function calculations.

BASIC Programming

Features of BASIC

Highlights the advantages and capabilities of the BASIC language.

BASIC Program Input

Provides steps for entering and preparing BASIC programs.

BASIC Program Execution

Details how to run BASIC programs and handle execution errors.

BASIC Variables and Commands

Variables

Explains numeric, string, and array variables in BASIC.

BASIC Command Reference

A comprehensive reference for BASIC commands and functions.

BASIC Command Reference Details

Mathematical Functions

Reference for ABS, ACS, ANGLE, COS, SIN, SQR, TAN, etc.

BASIC String and Graphical Functions

C Programming Introduction

Learning C with Pocket Computer

Guidance on using the pocket computer as a C learning tool.

Meet the Casio C Interpreter

Introduces the C interpreter and its operation compared to compilers.

C Program Input Procedures

Using the C Editor

Details on creating and editing C source code.

C Program Execution

C Programming Essentials

Variable Types and Operations

Covers C data types (char, int, float, double) and assignments.

Selection Statements

Explains the 'if' and 'if-else' statements for conditional logic.

C Control Flow and Functions

Using Loops

Details 'while', 'do-while', and 'for' loops for repetitive execution.

Defining Functions

Explains how to create and use custom functions in C.

C Constants, Variables, and Operators

Constants and Variables

Covers variable scope, types, and storage.

C Operators and Command Reference

Operators

Lists and explains C operators and their precedence.

C Command Reference

Reference for C commands like RUN, EDIT, TRON, TROFF.

C Command Reference Details

String Functions

Reference for strcat, strchr, strcmp, strcpy, strlen.

Related product manuals