Fluxograma
Introduction to programming
Conteúdo do fluxograma
Variables
A variable is a symbol whose value can change during the execution of a program
Example
Public class First Java Program
{
Public state Void main (string orgs[])
{
String x = "Hello World"
System.out.println(x)
Variable types
Boolean- True/False
Int- +/- whole number
long- +/- larger than an integer
short - +/- smaller than an integer
sting- Variable length
Char - single character
Double- Decimal or floating number
-
Example
Public class Assignment {
Public state void main ( string args[]) {
long x ;
x= 1000
double z = 10.3, y= -22.3
Sytem.out.println (x) ;
You must always assign a value to a variable before you use it within a program. E.g x = 1000;
Informações
- Descrição
- Fluxograma sobre Introduction to programming, criado por vin _d em 11-11-2021.
- Criado por
- vin _d
- Visualizações
- 0
- Avaliação