# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()

{
 char name [50] ;
  
 cout << "Please enter your name= ";
 cin >> name;
 cout << "Your name is = " << name << endl;
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 
 return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;

int main()

{
 char name [50] ;
  
 cout << "Please enter your name= ";
 cin >> name;
 cout << "Your name is = " << name << endl;
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 
 return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main ()

{
 cout << "Hello World!" << endl ;
 cout << "I'm a C++ program" << endl;
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 
 return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
 
 cout << "Size of char : " << sizeof(char) << endl;
 cout << "Size of int : " << sizeof(int) << endl;
 cout << "Size of short int : " << sizeof(short int) << endl;
 cout << "Size of long int : " << sizeof(long int) << endl;
 cout << "Size of float : " << sizeof(float) << endl;
 cout << "Size of double : " << sizeof(double) << endl;
 cout << "Size of wchar_t : " << sizeof(wchar_t) << endl;
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 
 return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>

using namespace std;

int main()

{
 int area , length , width, newline ;
 
 cout << "Enter Length = " ;
 cin >>length ;
 cout<< "Enter Width = " ;
 cin >>width ;

 area = length * width;
 cout << "Your Area = "  ;
 cout << area << endl ;
 cout << "\n";
 cout << endl;
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;

return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
 int a = 21;
 int b = 10;
 int c ;
 if( a == b )
 {
 cout << "Line 1 - a is equal to b" << endl;
 }
 else
 {
 cout << "Line 1 - a is not equal to b" << endl;
 }
 if ( a < b )
 {
 cout << "Line 2 - a is less than b" << endl;
 }
 else
 {
 cout << "Line 2 - a is not less than b" << endl;
 }
 if ( a > b )
 {
 cout << "Line 3 - a is greater than b" << endl;
 }
 else
 {
 cout << "Line 3 - a is not greater than b" << endl;
 }
 
 cout << endl;
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;

return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()

{

 int a , b , c ; 
 
 cout << "Enter a =" ;
 cin >> a ;
 cout << "Enter b =" ;
 cin >> b ;
 
 c=a+b;
 cout << "Line 1 - Value of c is =" << c << endl ;
 
 c=a-b;
 cout << "Line 2 - Value of c is =" << c << endl ;
 
 c=a*b;
 cout << "Line 3 - Value of c is =" << c << endl ;
 
 c=a/b;
 cout << "Line 4 - Value of c is =" << c << endl ;
 
 c=a%b;
 cout << "Line 5 - Value of c is =" << c << endl ;
 
 c=a++;
 cout << "Line 6 - Value of c is =" << c << endl ;
 
 c=a--;
 cout << "Line 7 - Value of c is =" << c << endl ;
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 
 return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
main()
{
 int a = 5;
 int b = 20;
 int c ;
 if ( a && b )
 {
 cout << "Line 1 - Condition is true"<< endl ;
 }
 if ( a || b )
 {
 cout << "Line 2 - Condition is true"<< endl ;
 }
 a = 0;
 b = 10;
 if ( a && b )
 {
 cout << "Line 3 - Condition is true"<< endl ;
 }
 else
 {
 cout << "Line 4 - Condition is not true"<< endl
;
 }
 if ( !(a && b) )
 {
 cout << "Line 5 - Condition is true"<< endl ;
 }
 
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 return 0;
}

# data[].attributes.attachment_link.readable_text
#include <iostream>
using namespace std;
int main()
{
 float amountsales , bonus;
	
 cout << "Enter amount of your sales last year = RM" ;
 cin >> amountsales ;
	
 bonus = amountsales * 5/100 * 31/360;
 cout << "Your bonus payment in January is = " << "RM"<< bonus << endl;
 cout << endl; 
 
 cout << "Name     = MUHAMMAD ZAHRAN HAKIM BIN ISMAIL" << endl;
 cout << "Id       = 25DDT17F1022" << endl;
 cout << "Lecturer = ABDUL FARID BIN AZMI" << endl;
 
 return 0;
}
