AD (728x60)

Diberdayakan oleh Blogger.

Sabtu, 07 Mei 2016

Summary of Hospital Revenue halaman 419

Share & Comment
Assalamulaikum w.w.
input c++:
#include <iostream>
#include <cstdlib>

/* 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) {
    int i, j, max, temp;
    int data[10];
   
    cout<<"\t\t\t++++ Summary of Hospital Revenue ++++"<<endl<<endl;
    cout<<"Masukkan Banyak Data : ";
    cin>>max;
    for(i=1;i<=max;i++){
        cout<<"\nMasukkan Data Ke-"<<i<<" ; ";
        cin>>data[i];
        }
    cout<<"\nData Awal : ";
    for(i=1;i<=max;i++){
        cout<<data[i]<<" ";
    }
    for(i=1;i<=max;i++){
        for(j=1;j<=max;j++){
        if(data[i]>data[j]){
            temp=data[i];
            data[i]=data[j];
            data[j]=temp;
        }
    }
}
   
    return 0;
}

output c++:
wassalamualaikum w.w.
http://dwiharlina.blogspot.co.id/
http://al-likenet.blogspot.co.id/
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