#include //header
Main ( ) // start body
{ // Open curly bracket
} // close curly bracket
// comment hidden
// 1 line coding
/ * , * / all coding @ more than 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. 1. Look and aware of formula
2.Find how many variable name
3.Declare variable
2.Find how many variable name
3.Declare variable
Input:
Cout <<“----------------------” ;
Cin >>variable_name_that_had_declared;
Rules: carefull with spelling,alphabet small and big
Output:
Cout <<“----------------------”<<
variable_name_that_had_declared;
0 comments:
Post a Comment
thanks for comment..