Fundamentals of Computer Programming 1: Johaira U. Lidasan, MCS
Fundamentals of Computer Programming 1: Johaira U. Lidasan, MCS
Computer Programming 1
Johaira U. Lidasan, MCS
Introduction to Computers
1. Mainframes/Supercomputers
2. Personal Computer
Represents declaration
Represents predefined
Represents condition process/module
1. Declare variable n as an
integer Int n
2. Get a number from the
user and assign it to n
3. Display n Get n
Display n
End
Float radius,
1. Declare variable radius as area
float
2. Get radius Get radius
3. Calculate area using this
formula area = PI * (radius
* radius) area = PI * (radius * radius)
4. Display area
Display area
End
Computer Programming 1 JOHAIRA U. LIDASAN, MCS
Comments
- Are an integral part of program code in any
programming language
- /*…*/
- //