skip to main |
skip to sidebar
/*PROGRAM DERET BILANGAN MENGGUNAKAN FOR*/
#pragma argused
#include<conio.h>
#include<iostream.h>
#include<iomanip.h>
int main()
{
int jumgen,jumgan,i,x,gan,gen,jum;
cout<<"PROGRAM DERET BILANGAN MENGGUNAKAN FOR"<<endl;
cout<<"----------------------"<<endl;
cout<<endl;
cout<<"Masukkan Jumlah Bilangan : ";
cin>> x ;
cout<<endl;
cout<<endl;
gan=1;
gen=0;
jumgan=0;
jumgen=0;
cout<<"No."<<setw(13)<<"Ganjil"<<setw(10)<<"Genap"<<endl;
cout<<"---"<<setw(13)<<"------"<<setw(10)<<"-----"<<endl;
for (i=1 ; i<=x ; i=i+1)
{
cout<<setw(2)<< i <<"."<<setw(10)<<gan <<setw(12)<< gen<<endl;
jumgan=jumgan+gan;
jumgen=jumgen+gen;
gan=gan+2;
gen=gen+2;
}
cout<<setw(10)<<"--------------------------"<<endl;
cout<<setw(13)<<jumgan<<setw(12)<<jumgen<<endl;
jum=jumgan+jumgen;
cout<<endl;
cout<<endl;
cout<<"Jumlah Ganjil + Jumlah Genap = "<<jum<<endl;
getch();
}
/*PROGRAM DERET BILANGAN MENGGUNAKAN ARRAY*/
#pragma argused
#include<iostream.h>
#include<conio.h>
int main()
{
int data1[10];
int data2[10];
int i,x,jum1,jum2;
jum1 = 0;
jum2 = 0;
cout<<"PROGRAM BILANGAN MENGGUNAKAN ARRAY"<<endl;
cout<<"----------------------------------"<<endl;
cout<<endl;
cout<<"Masukkan Jumlah Bilangan(Max.10) : ";
cin>> x ;
cout<<endl;
cout<<"Data Bilangan 1"<<endl;
cout<<"---------------"<<endl;
for ( i=1 ; i<=x ; i=i+1)
{
cout<<"Data ke-"<<i<<" : ";
cin>>data1[i];
}
cout<<endl;
cout<<"Data Bilangan 2"<<endl;
cout<<"---------------"<<endl;
for ( i=1 ; i<=x ; i=i+1)
{
cout<<"Data ke-"<<i<<" : ";
cin>>data2[i];
}
cout<<endl;
cout<<"Jumlah Bilangan 1 = ";
for (i=1;i<=x;i=i+1)
{
cout<<data1[i]<<" ";
jum1=jum1+data1[i];
}
cout<<"= "<< jum1 <<endl;
cout<<endl;
cout<<"Jumlah Bilangan 2 : ";
for (i=1 ; i<=x ; i=i+1)
{
cout<<data2[i]<<" ";
jum2=jum2+data2[i];
}
cout<<"= "<<jum2<<endl;
getch();
}
1. Install Gnome-3
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update && sudo apt-get dist-upgrade
2. Install Gnome-Shell
sudo apt-get install gnome-shell mutter gnome-tweak-tool
3. Remove Gnome-accessibility-themes (agar tampilan gnome tidak error)
sudo apt-get remove gnome-accessibility-themes
4. Install Gnome-Theme-Standard
sudo apt-get install gnome-theme-standard
5. Upgrade ke Gnome Remix
sudo add-apt-repository ppa:ubuntugnometeam/ppa-gen
sudo apt-get update && sudo apt-get dist-upgrade
6. Install UGR3
sudo apt-get install ugr-desktop-g3
sudo apt-get upgrade