AD (728x60)

Diberdayakan oleh Blogger.

Sabtu, 05 Maret 2016

Menghitung nilai UTS dan UAS

Share & Comment
Assalamualikum w.w,
Berikut ini cara mengitung nilai UTS dan UAS:

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;

int main(int argc, char *argv[]) {
   
string nm;
int n,m,t,s,jumlah;

cout<<"masukan nama :";
cin>>nm;
cout<<"\nmasukan nim :";
cin>>m;
cout<<"\ntanggal lahir :";   
cin>>t;
cout<<"\nnilai UTS :";   
cin>>n;
cout<<"\nnilai UAS :";   
cin>>s;

jumlah=3*n+2*s;

cout<<"nnama :"<<nm<<endl;   
cout<<"\nnim :"<<m<<endl;   
cout<<"\ntanggal lahir :"<<t<<endl;   
cout<<"\nUTS :"<<n<<endl;   
cout<<"\nUAS :"<<s<<endl;   
cout<<"\njumlah :"<<jumlah<<endl;   
   
    return 0;
}
Gambar program nya:
Gambar output nya:
Semoga bermanfaat ...
Wassalamualikum w.w.


Tags:

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 komentar:

Posting Komentar

 
Copyright © safirizky blogs | Designed by Templateism.com