This is featured post 1 title
Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.
This is featured post 2 title
Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.
This is featured post 3 title
Replace these every slider sentences with your featured post descriptions.Go to Blogger edit html and find these sentences.Now replace these with your own descriptions.
Senin, 13 Januari 2014
PROGRAM PERULANGAN
·
PROGRAM MENCARI HURUF VOKAL
#include <iostream>
#include <string.h>
#include <cstdlib>
using namespace std;
int main ()
{
cout<<"\tPROGRAM
MENCARI HURUF VOKAL\n\n";
cout<<"\t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n";
charkalimat[50];
cout<<"Char
= 50\n";
cout<<"*** TuliskanKalimatAnda:\n";
cin.getline (kalimat,50);
inti;
intvokal = 0;
for(i=0; i<strlen(kalimat); i++)
{if (kalimat[i] == 'a' || kalimat[i] == 'A' ||
kalimat[i] == 'i' || kalimat[i] == 'I' ||
kalimat[i] == 'u' || kalimat[i] == 'U' ||
kalimat[i] == 'e' || kalimat[i] == 'E' ||
kalimat[i] == 'o' || kalimat[i] == 'U' ){
vokal++;
}
}
cout<<"\n~~~>jumlahvokal=";
cout<<vokal<<endl;
}
//exmpl :
//char kalimat[] = "saya ";
//isikalimat[0] = 's'
//isikalimat[1] = 'a'
//isikalimat[2] = 'y'
//strlenfungsibuatmendapatkanpanjang string, jikaditemukan
array berupaa,i,u,e,omakavariabelvokal +1.
·
PROGRAM PERULANGAN SEGITIGA
#include<iostream>
#include <stdlib.h>
using namespace std;
int main()
{
chartombol;
intmenu,a,b,c,v,x,y,z;
menu:
system
("cls");
cout<<"\t\t\t\t
KELOMPOK 11\n";
cout<<"\t\t\t
PROGRAM PERULANGAN SEGITIGA\n ";
cout<<"\t\t===========================================\n
";
cout<<"\t\t===========================================\n"<<endl;
cout<<"1.SEGITIGA
RATA KIRI\n";
cout<<"2.SEGITIGA
RATA KANAN\n";
cout<<"3.KOMBINASI
SEGITIGA RATA KIRI\n";
cout<<"4.KOMBINASI
SEGITIGA RATA KIRI DAN KANAN\n";
cout<<"5.SEGITIGA
PIRAMID\n";
cout<<"\nSilahkanMasukkanPerulangan
SEGITIGA Yang AndaInginkan (1-5) : ";cin>>menu;
switch(menu)
{
case
1:
system
("cls");
cout<<"SEGITIGA
RATA KIRI\n\n";
cout<<"MasukkanJumlahBaris=";
cin>>z;cout<<endl;
for(int
y=0;y<=z;y++)
{
for(x=1;x<=y;x++)
cout<<"*";
cout<<endl;
}
cout<<"\n";
cout<<"\n===========================================\n
";
break;
case
2:
system
("cls");
cout<<"SEGITIGA
RATA KANAN\n\n";
cout<<"MasukkanAngka
: ";cin>>a;
cout<<"\n";
for(b=0;b<a;b++)
{
for(c=0;c<a-b;c++)
cout<<"
";
for(c=0;c<=b;c++)
cout<<"*";
cout<<"\n";
}
cout<<"\n";
cout<<"\n===========================================\n
";
break;
case
3:
system
("cls");
cout<<"KOMBINASI
SEGITIGA RATA KIRI\n\n";
cout<<"MasukkanAngka
: ";cin>>a;
cout<<"\n";
for(b=0;b<a;b++)
{
for(c=0;c<a-b;c++)
cout<<"*";
cout<<"\n";
}
for(b=0;b<a;b++)
{
for(c=0;c<=b;c++)
cout<<"*";
cout<<"\n";
}
cout<<"\n";
cout<<"\n===========================================\n
";
break;
case
4:
system
("cls");
cout<<"KOMBINASI
SEGITIGA RATA KIRI DAN KANAN\n\n";
cout<<"MasukkanJumlahBaris=";
cin>>z;cout<<endl;
for(int
y=1;y<=z;y++)
{
for(x=1;x<=y;x++)
{cout<<"*";}
for(v=z;
v>=x; v--)
{cout<<" ";}
for(v=x;v<x;v++)
{
cout<<"*";}
for(v=2*(x-1);v>=x;
v--)
{
cout<<"*";}
cout<<"\n";
}
cout<<"\n";
cout<<"\n===========================================\n
";
break;
case
5:
system
("cls");
cout<<"SEGITIGA
PIRAMID\n\n";
cout<<"MasukkanTinggiPiramid
= ";cin>>a;
for(x=1;
x<=a; x++)
{
for(z=a;
z>=x; z--)
cout<<"
";
for(z=1;z<x+x;z++)
{
cout<<"*";
}
cout<<"\n";
cout<<"\n";
cout<<"\n===========================================\n
";
break;
}
cout<<
"Apakahmaumengulangi (Y/T)?";cin>>tombol;
cout<<endl;
if
(tombol == 'Y' || tombol == 'y'){goto menu;}
else
{
cout<<
"Selesai";
}
}
OPERASI MATRIKS
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
char tombol;
int menu,ordo,a1,a2,a3,a4,a5,a6,a7,a8,a9,b1,b2,b3,b4,b5,b6,b7,b8,b9;
menu:
system ("color f");
system ("cls");
cout<<"\t\t OPERASI MATRIKS\n";
cout<<"\t\t ===============\n\n";
cout<<"Silahkan Pilih Ordo Matriks \n\n";
cout<<"+------------+\n";
cout<<"| 1.Ordo 2x2 |\n";
cout<<"| 2.Ordo 3x3 |\n";
cout<<"+------------+\n";
cout<<"Pilihan anda= ";cin>>ordo;
cout<<"=====================================\n";
switch(ordo)
{
case 1:
system ("cls");
cout<<"Matriks Ordo 2x2\n\n";
cout << "\tOPERASI 2 MATRIKS ORDO 2x2\n\n";
cout << "Masukkan Matrix A = \n";
cout<<"(1,1)=";cin>>a1;
cout<<"(1,2)=";cin>>a2;
cout<<"(2,1)=";cin>>a3;
cout<<"(2,2)=";cin>>a4;
cout << "\nMatriks A = \n";
cout<<"\t\t"<<a1<<"\t"<<a2<<"\n"<<"\t\t"<<a3<<"\t"<<a4<<"\n\n";
cout << "\nMatriks A^2 = \n";
cout<<"\t\t"<<a1*a1+a2*a3<<"\t"<<a1*a2+a2*a4<<"\n"<<"\t\t"<<a3*a1+a4*a3<<"\t"<<a3*a2+a4*a4<<"\n\n";
cout << "Masukkan Matrix B = \n";
cout<<"(1,1)=";cin>>b1;
cout<<"(1,2)=";cin>>b2;
cout<<"(2,1)=";cin>>b3;
cout<<"(2,2)=";cin>>b4;
cout << "\nMatriks B = \n";
cout<<"\t\t"<<b1<<"\t"<<b2<<"\n"<<"\t\t"<<b3<<"\t"<<b4<<"\n\n";
cout << "\nMatriks B^2 = \n";
cout<<"\t\t"<<b1*b1+b2*b3<<"\t"<<b1*b2+b2*b4<<"\n"<<"\t\t"<<b3*b1+b4*b3<<"\t"<<b3*b2+b4*b4<<"\n\n";
cout<<"matrix (A+B)= \n";
cout<<"\t\t"<<a1+b1<<"\t"<<a2+b2<<"\n"<<"\t\t"<<a3+b3<<"\t"<<a4+b4<<"\n\n";
cout<<"matrix (A-B)= \n";
cout<<"\t\t"<<a1-b1<<"\t"<<a2-b2<<"\n"<<"\t\t"<<a3-b3<<"\t"<<a4-b4<<"\n\n";
cout<<"matrix (B-A)= \n";
cout<<"\t\t"<<b1-a1<<"\t"<<b2-a2<<"\n"<<"\t\t"<<b3-a3<<"\t"<<b4-a4<<"\n\n";
cout<<"matrix (A*B)= \n";
cout<<"\t\t"<<a1*b1+a2*b3<<"\t"<<a1*b2+a2*b4<<"\n"<<"\t\t"<<a3*b1+a4*b3<<"\t"<<a3*b2+a4*b4<<"\n\n";
cout<<"matrix (B*A)= \n";
cout<<"\t\t"<<b1*a1+b2*a3<<"\t"<<b1*a2+b2*a4<<"\n"<<"\t\t"<<b3*a1+b4*a3<<"\t"<<b3*a2+b4*a4<<"\n\n";
cout<<"Det(A)=";
cout<<"\t\t"<<"("<<a1<<"*"<<a4<<")"<<" - "<<"("<<a2<<"*"<<a3<<")"<<"\n"<<"\t\t"<<a1*a4<<" - "<<a2*a3<<" = "<<a1*a4-a2*a3<<"\n\n";
cout<<"Det(B)=";
cout<<"\t\t"<<"("<<b1<<"*"<<b4<<")"<<" - "<<"("<<b2<<"*"<<b3<<")"<<"\n"<<"\t\t"<<b1*b4<<" - "<<b2*b3<<" = "<<b1*b4-b2*b3<<"\n\n";
cout<<"Tr (A)= \n";
cout<<"\t\t"<<"("<<a1<<"+"<<a4<<")"<<" = "<<a1+a4<<"\n\n";
cout<<"Tr (B)= \n";
cout<<"\t\t"<<"("<<b1<<"+"<<b4<<")"<<" = "<<b1+b4<<"\n\n";
break;
case 2:
system ("cls");
cout<<"Matriks Ordo 3x3\n\n";
cout << "\tOPERASI 2 MATRIKS ORDO 3x3\n\n";
cout << "Masukkan Matrix A = \n";
cout<<"(1,1)=";cin>>a1;
cout<<"(1,2)=";cin>>a2;
cout<<"(1,3)=";cin>>a3;
cout<<"(2,1)=";cin>>a4;
cout<<"(2,2)=";cin>>a5;
cout<<"(2,3)=";cin>>a6;
cout<<"(3,1)=";cin>>a7;
cout<<"(3,2)=";cin>>a8;
cout<<"(3,3)=";cin>>a9;
cout << "\nMatriks A = \n";
cout<<"\t\t"<<a1<<"\t"<<a2<<"\t"<<a3<<"\n"<<"\t\t"<<a4<<"\t"<<a5<<"\t"<<a6<<"\n"<<"\t\t"<<a7<<"\t"<<a8<<"\t"<<a9<<"\n\n";
cout << "Masukkan Matrix B = \n";
cout<<"(1,1)=";cin>>b1;
cout<<"(1,2)=";cin>>b2;
cout<<"(1,3)=";cin>>b3;
cout<<"(2,1)=";cin>>b4;
cout<<"(2,2)=";cin>>b5;
cout<<"(2,3)=";cin>>b6;
cout<<"(3,1)=";cin>>b7;
cout<<"(3,2)=";cin>>b8;
cout<<"(3,3)=";cin>>b9;
cout << "\nMatriks B = \n";
cout<<"\t\t"<<b1<<"\t"<<b2<<"\t"<<b3<<"\n"<<"\t\t"<<b4<<"\t"<<b5<<"\t"<<b6<<"\n"<<"\t\t"<<b7<<"\t"<<b8<<"\t"<<b9<<"\n\n";
cout<<"matrix (A+B)= \n";
cout<<"\t\t"<<a1+b1<<"\t"<<a2+b2<<"\t"<<a3+b3<<"\n"<<"\t\t"<<a4+b4<<"\t"<<a5+b5<<"\t"<<a6+b6<<"\n"<<"\t\t"<<a7+b7<<"\t"<<a8+b8<<"\t"<<a9+b9<<"\n\n";
cout<<"matrix (A-B)= \n";
cout<<"\t\t"<<a1-b1<<"\t"<<a2-b2<<"\t"<<a3-b3<<"\n"<<"\t\t"<<a4-b4<<"\t"<<a5-b5<<"\t"<<a6-b6<<"\n"<<"\t\t"<<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\n";
cout<<"Det (B)=";
cout<<"\t"<<b1<<"\t"<<b2<<"\t"<<b3<<"\t"<<"|"<<"\t"<<b1<<"\t"<<b2<<"\n"<<"\t\t"<<b4<<"\t"<<b5<<"\t"<<b6<<"\t"<<"|"<<"\t"<<b4<<"\t"<<b5<<"\n"<<"\t\t"<<b7<<"\t"<<b8<<"\t"<<b9<<"\t"<<"|"<<"\t"<<b7<<"\t"<<a8<<"\n\n";
cout<<"\t"<<"("<<b1<<"*"<<b5<<"*"<<b9<<"+"<<b2<<"*"<<b6<<"*"<<b7<<"+"<<b3<<"*"<<b4<<"*"<<b8<<")"<<"-"<<"("<<b2<<"*"<<b4<<"*"<<b9<<"+"<<b1<<"*"<<b6<<"*"<<b8<<"+"<<b3<<"*"<<b5<<"*"<<b7<<")"<<"\n"<<"\t\t"<<b1*b5*b9+b2*b6*b7+b3*b4*b8<<" - "<<b2*b4*b9+b1*b6*b8+b3*b5*b7<<" = "<<(b1*b5*b9+b2*b6*b7+b3*b4*b8)-(b2*b4*b9+b1*b6*b8+b3*b5*b7)<<"\n\n";
cout<<"Tr (A)=";
cout<<"\t\t"<<"("<<a1<<"+"<<a5<<"+"<<a9<<")"<<" = "<<a1+a5+a9<<"\n\n";
cout<<"Tr (B)=";
cout<<"\t\t"<<"("<<b1<<"+"<<b5<<"+"<<b9<<")"<<" = "<<b1+b5+b9<<"\n\n";
break;
cout <<"\n";
cout<<"\n===========================================\n ";
}
back:
cout << "Apakah mau mengulangi (Y/T)?";cin>>tombol;cout << endl;
if (tombol == 'Y' || tombol == 'y'){goto menu;}
else if (tombol =='T' || tombol == 't') {exit;}
else {goto back;}
}
ini adalah hasil compile:
#include <stdlib.h>
using namespace std;
int main()
{
char tombol;
int menu,ordo,a1,a2,a3,a4,a5,a6,a7,a8,a9,b1,b2,b3,b4,b5,b6,b7,b8,b9;
menu:
system ("color f");
system ("cls");
cout<<"\t\t OPERASI MATRIKS\n";
cout<<"\t\t ===============\n\n";
cout<<"Silahkan Pilih Ordo Matriks \n\n";
cout<<"+------------+\n";
cout<<"| 1.Ordo 2x2 |\n";
cout<<"| 2.Ordo 3x3 |\n";
cout<<"+------------+\n";
cout<<"Pilihan anda= ";cin>>ordo;
cout<<"=====================================\n";
switch(ordo)
{
case 1:
system ("cls");
cout<<"Matriks Ordo 2x2\n\n";
cout << "\tOPERASI 2 MATRIKS ORDO 2x2\n\n";
cout << "Masukkan Matrix A = \n";
cout<<"(1,1)=";cin>>a1;
cout<<"(1,2)=";cin>>a2;
cout<<"(2,1)=";cin>>a3;
cout<<"(2,2)=";cin>>a4;
cout << "\nMatriks A = \n";
cout<<"\t\t"<<a1<<"\t"<<a2<<"\n"<<"\t\t"<<a3<<"\t"<<a4<<"\n\n";
cout << "\nMatriks A^2 = \n";
cout<<"\t\t"<<a1*a1+a2*a3<<"\t"<<a1*a2+a2*a4<<"\n"<<"\t\t"<<a3*a1+a4*a3<<"\t"<<a3*a2+a4*a4<<"\n\n";
cout << "Masukkan Matrix B = \n";
cout<<"(1,1)=";cin>>b1;
cout<<"(1,2)=";cin>>b2;
cout<<"(2,1)=";cin>>b3;
cout<<"(2,2)=";cin>>b4;
cout << "\nMatriks B = \n";
cout<<"\t\t"<<b1<<"\t"<<b2<<"\n"<<"\t\t"<<b3<<"\t"<<b4<<"\n\n";
cout << "\nMatriks B^2 = \n";
cout<<"\t\t"<<b1*b1+b2*b3<<"\t"<<b1*b2+b2*b4<<"\n"<<"\t\t"<<b3*b1+b4*b3<<"\t"<<b3*b2+b4*b4<<"\n\n";
cout<<"matrix (A+B)= \n";
cout<<"\t\t"<<a1+b1<<"\t"<<a2+b2<<"\n"<<"\t\t"<<a3+b3<<"\t"<<a4+b4<<"\n\n";
cout<<"matrix (A-B)= \n";
cout<<"\t\t"<<a1-b1<<"\t"<<a2-b2<<"\n"<<"\t\t"<<a3-b3<<"\t"<<a4-b4<<"\n\n";
cout<<"matrix (B-A)= \n";
cout<<"\t\t"<<b1-a1<<"\t"<<b2-a2<<"\n"<<"\t\t"<<b3-a3<<"\t"<<b4-a4<<"\n\n";
cout<<"matrix (A*B)= \n";
cout<<"\t\t"<<a1*b1+a2*b3<<"\t"<<a1*b2+a2*b4<<"\n"<<"\t\t"<<a3*b1+a4*b3<<"\t"<<a3*b2+a4*b4<<"\n\n";
cout<<"matrix (B*A)= \n";
cout<<"\t\t"<<b1*a1+b2*a3<<"\t"<<b1*a2+b2*a4<<"\n"<<"\t\t"<<b3*a1+b4*a3<<"\t"<<b3*a2+b4*a4<<"\n\n";
cout<<"Det(A)=";
cout<<"\t\t"<<"("<<a1<<"*"<<a4<<")"<<" - "<<"("<<a2<<"*"<<a3<<")"<<"\n"<<"\t\t"<<a1*a4<<" - "<<a2*a3<<" = "<<a1*a4-a2*a3<<"\n\n";
cout<<"Det(B)=";
cout<<"\t\t"<<"("<<b1<<"*"<<b4<<")"<<" - "<<"("<<b2<<"*"<<b3<<")"<<"\n"<<"\t\t"<<b1*b4<<" - "<<b2*b3<<" = "<<b1*b4-b2*b3<<"\n\n";
cout<<"Tr (A)= \n";
cout<<"\t\t"<<"("<<a1<<"+"<<a4<<")"<<" = "<<a1+a4<<"\n\n";
cout<<"Tr (B)= \n";
cout<<"\t\t"<<"("<<b1<<"+"<<b4<<")"<<" = "<<b1+b4<<"\n\n";
break;
case 2:
system ("cls");
cout<<"Matriks Ordo 3x3\n\n";
cout << "\tOPERASI 2 MATRIKS ORDO 3x3\n\n";
cout << "Masukkan Matrix A = \n";
cout<<"(1,1)=";cin>>a1;
cout<<"(1,2)=";cin>>a2;
cout<<"(1,3)=";cin>>a3;
cout<<"(2,1)=";cin>>a4;
cout<<"(2,2)=";cin>>a5;
cout<<"(2,3)=";cin>>a6;
cout<<"(3,1)=";cin>>a7;
cout<<"(3,2)=";cin>>a8;
cout<<"(3,3)=";cin>>a9;
cout << "\nMatriks A = \n";
cout<<"\t\t"<<a1<<"\t"<<a2<<"\t"<<a3<<"\n"<<"\t\t"<<a4<<"\t"<<a5<<"\t"<<a6<<"\n"<<"\t\t"<<a7<<"\t"<<a8<<"\t"<<a9<<"\n\n";
cout << "Masukkan Matrix B = \n";
cout<<"(1,1)=";cin>>b1;
cout<<"(1,2)=";cin>>b2;
cout<<"(1,3)=";cin>>b3;
cout<<"(2,1)=";cin>>b4;
cout<<"(2,2)=";cin>>b5;
cout<<"(2,3)=";cin>>b6;
cout<<"(3,1)=";cin>>b7;
cout<<"(3,2)=";cin>>b8;
cout<<"(3,3)=";cin>>b9;
cout << "\nMatriks B = \n";
cout<<"\t\t"<<b1<<"\t"<<b2<<"\t"<<b3<<"\n"<<"\t\t"<<b4<<"\t"<<b5<<"\t"<<b6<<"\n"<<"\t\t"<<b7<<"\t"<<b8<<"\t"<<b9<<"\n\n";
cout<<"matrix (A+B)= \n";
cout<<"\t\t"<<a1+b1<<"\t"<<a2+b2<<"\t"<<a3+b3<<"\n"<<"\t\t"<<a4+b4<<"\t"<<a5+b5<<"\t"<<a6+b6<<"\n"<<"\t\t"<<a7+b7<<"\t"<<a8+b8<<"\t"<<a9+b9<<"\n\n";
cout<<"matrix (A-B)= \n";
cout<<"\t\t"<<a1-b1<<"\t"<<a2-b2<<"\t"<<a3-b3<<"\n"<<"\t\t"<<a4-b4<<"\t"<<a5-b5<<"\t"<<a6-b6<<"\n"<<"\t\t"<<a7-b7<<"\t"<<a8-b8<<"\t"<<a9-b9<<"\n\n";
cout<<"matrix (B-A)= \n";
cout<<"\t\t"<<b1-a1<<"\t"<<b2-a2<<"\t"<<b3-a3<<"\n"<<"\t\t"<<b4-a4<<"\t"<<b5-a5<<"\t"<<b6-a6<<"\n"<<"\t\t"<<b7-a7<<"\t"<<b8-a8<<"\t"<<b9-a9<<"\n\n";
cout<<"matrix (A*B)= \n";
cout<<"\t\t"<<a1*b1+a2*b4+a3*b7<<"\t"<<a1*b2+a2*b5+a3*b8<<"\t"<<a1*b3+a2*b6+a3*b9<<"\n"<<"\t\t"<<a4*b1+a5*b4+a6*b7<<"\t"<<a4*b2+a5*b5+a6*b8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<<"*"<<b6<<"*"<<b8<<"+"<<b3<<"*"<<b5<<"*"<<b7<<")"<<"\n"<<"\t\t"<<b1*b5*b9+b2*b6*b7+b3*b4*b8<<" - "<<b2*b4*b9+b1*b6*b8+b3*b5*b7<<" = "<<(b1*b5*b9+b2*b6*b7+b3*b4*b8)-(b2*b4*b9+b1*b6*b8+b3*b5*b7)<<"\n\n";
cout<<"Tr (A)=";
cout<<"\t\t"<<"("<<a1<<"+"<<a5<<"+"<<a9<<")"<<" = "<<a1+a5+a9<<"\n\n";
cout<<"Tr (B)=";
cout<<"\t\t"<<"("<<b1<<"+"<<b5<<"+"<<b9<<")"<<" = "<<b1+b5+b9<<"\n\n";
break;
cout <<"\n";
cout<<"\n===========================================\n ";
}
back:
cout << "Apakah mau mengulangi (Y/T)?";cin>>tombol;cout << endl;
if (tombol == 'Y' || tombol == 'y'){goto menu;}
else if (tombol =='T' || tombol == 't') {exit;}
else {goto back;}
}
ini adalah hasil compile:
Minggu, 17 November 2013
Ponsel Sepatu Teknologi Unik Tahun 2013
Seperti yang kita tau teknologi yang berkembang dan sudah biasa di semua kalangan adalah handphone atau yang kita kenal dengan telephone genggam,tapi apa jadinya jika handphone ini berbentuk sepatu dan sepatu tersebut digunakan untuk berjalan jalan dan berlari lari,ya itu hal yang mungkin ketika seseorang bernama sean menciptakan sebuah inovasi yang dinamainya sebagai shoes phone.
Sepatu Ponsel Atau Shoes Phone adalah sebuah ciptaan dari seorang seniman yang dibuat kedalam bentuk seni yang fungsinal dan juga sangat modern ,desain sepatu ponsel yang dibuat di tahun 2013 ini mulai dikenalkan oleh orang tua yang merupakan seniman yang berusia 41 tahun yang bernama Sean Miles. Kini Ciptaan terbaru dan sangat unik ini telah di produksi . Teknologi ini juga menggabungkan teknologi ponsel lama dan teknologi ponsel baru dan di simpan di sebuah sepatu merupakan ide cemerlang dari Sean. Tidak tanggung-tanggung ponsel sepatu ciptaan terbaru dari Sean ini langsung dibandrol dengan harga tinggi yaitu $3950 Atau Setara dengan £2,500.
jadi Akibat produk yang di ciptakan sean,kini ponsel yang menggunakan teknologi lama tidak lagi dipandang sebelah mata, Bahkan banyak dari vendor vendor yang memproduksi teknologi ponsel baru ,juga mulai meilirik ciptaan sean seperti Apple Inc dan perusahaan Smartphone lainnya. Berkat ide cermelang dari Sean itu mampu membuktikan sesuatu yang unik atau diciptakan lain dari pada yang lain jelas mampu menarik minat dan perhatian banyak orang dan juga merupakan salah satu dari produk teknologi terbaru yang menjadi andalan untuk masa kini. Dan produk Sean ini sudah memiliki banyak model dan variasi
jadi Akibat produk yang di ciptakan sean,kini ponsel yang menggunakan teknologi lama tidak lagi dipandang sebelah mata, Bahkan banyak dari vendor vendor yang memproduksi teknologi ponsel baru ,juga mulai meilirik ciptaan sean seperti Apple Inc dan perusahaan Smartphone lainnya. Berkat ide cermelang dari Sean itu mampu membuktikan sesuatu yang unik atau diciptakan lain dari pada yang lain jelas mampu menarik minat dan perhatian banyak orang dan juga merupakan salah satu dari produk teknologi terbaru yang menjadi andalan untuk masa kini. Dan produk Sean ini sudah memiliki banyak model dan variasi
Adapun Model Model Ponsel Sepatu Dapat Dilihat Di Bawah Ini :
Demikian Postingan Artikel Ampuh Mengenai Ponsel Sepatu Teknologi Unik Di Tahun 2013 Semoga bermanfaat dan menambah pengetahuan para pembaca kami.dan tetap menjadi pilihan para pembaca untuk dijadikan bahan referensi dan sumber artikel terpercaya.
Apakah
Algoritma itu?
Algoritma
berasal dari nama penulis buku Arab yaitu Abu Ja'far Muhammad ibnu Musa Al-Khuwarizmi
Algoritma
adalah:
Langkah-langkah yang logis dan
terstruktur untuk menyelesaikan suatu masalah
Ciri
Algoritma yang baik:
Berurutan
Tidak berarti ganda (ambiguous)
Berhingga
Mari belajar
pemrograman awal C++,Disini sedikit saya ingin berbagi coding-coding didalam
pembuatan program,disini ada sedikit contoh pemrograman menggunakan bahasa C++
yang mudah,berikut contoh listing saya.
Ini adalah coding
untuk menampilkan nama lengakap
Dan setelah decompile
maka akan muncul hasil seperti dibawah ini:
Dan selanjutnya adalah
coding untuk menentukan bilangan prima atau bukan
Hasil compilnya:
Selanjutnya coding
untuk menentukan bilangan positif-negatif
Hasil compilnya adalah
Dan ini coding untuk
menentukan bilangan genap atau ganjil
Hasil compilenya
Jangan lupa untuk mengakhiri fungsi fungsi dan deklarasi dengan sebuah
tanda
Semicolon ( ; ). Jika anda lupa memberi tanda semicolon, kompiler akan
memberi anda
sebuah pesan eror pada saat anda melakukan kompilasi program anda.
Itu sedikit
contoh-contoh coding dari saya semoga bermanfaat bagi anda yang baru belajar
tentang bahasa pemrograman C++ .