#include <IDStream.h> //header
Main ( ) // start body
{ // Open curly braket
} // close curly braket
// comment hidden
// 1 baris coding
/ * , * / sume coding @ lbh dr 1 coding
Declare variable
Data_type variable_name
Data type
Int | Integer | |
Float | Float | Decimal |
Double | Double | Decimal |
Char | Character | a-z /A-Z |
String | String | Sentences |
Const | Constant | Tak berubah |
Rules:
1. ~ Tengok formula
2. ~Cari ade bape variable name
3. ~Declare variable
Input:
Cout <<“----------------------” ;
Cin >>variable_name_that_had_declared;
Rules: carefull dgn ejaan,huruf (kck & bsr)
Output:
Cout <<“----------------------”<<
variable_name_that_had_declared;
sample question!!!!!!!!!!
flow chart :
#include <iostream.h>//header
Main( ) //start body
{ // Open curly braket
//declare variable
Float area;
Float radius;
// input 1
Cout <<“enter radius”;
Cin>> radius;
//formula
area = 3.14 *radius*radius
//output
Cout <<“answer”<<area ;
Return 0 ;
} // close curly braket
//end baraket
* ciap pown tok chptr 2 nie...
chptr 2 nie agk ssh..tp kalo kite ley fhm n focus bnda nie sng jewk....hhehehe
ape yg pnting : kne wt step by step...
kalo kite da slh wt tok algoritm o pseudocode mknye kite akn slh gk wt bnda nie...
alert kt ejaan ea...jgn ade yg slh...
0 comments:
Post a Comment