Sunday, November 18, 2012

Modul_2: Variable


Modul_2 : VARIABLE
Nama      : Deab Sina
NIM       : 49012078
Jurusan    : D4 TMD ITB Batch 6

This is video about variable:



 


Link to this video: 


Source Code:

#include <iostream>
using namespace std;

int main()
{
    // Declare virable
    int program, network, computer;
    double total;
    char name[50];
    cout<<"=================================================\n";
    cout<<"        Please insert your name and score\n";
    cout<<"=================================================\n";
    cout<<"Insert your name : ";
    cin>>name;
    cout<<"Insert score of Program Subject : ";
    cin>>program;
    cout<<"Insert score of Network Subject : ";
    cin>>network;
    cout<<"Insert score of Computer Subject : ";
    cin>>computer;
    total = program + network + computer;
    cout<<"-------------------------------------------------\n";
    cout <<"Your total score = "<<total;
    cout <<"\n";

    system("pause");
    return 0;

}

Show Detail about this Modul




No comments:

Post a Comment