Latihan
2.
#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 a;
cout<<"Masukkan Kalimat : ";getline(cin,a);
cout<<a<<endl;
...
Minggu, 17 April 2016
DIKTAT BAB 6
6A.
1.
#include <cstdlib>#include <iostream>using namespace std;void bil(int a){ if(a%2!=0) cout<<"bilangan ganjil"<<endl; else cout<<"bilangan genap"<<endl;}int main(int argc, char *argv[]){ int b; cout<<"|============================|\n"; ...
How To Solve 4.5
4.5.1
DevC++
#include <iostream>#include <stdio.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */using namespace std;int main() { int n, *arr, onee = 0, twoo, threee, total = 0, maxx = -1, temp_maxx; cin >> n; arr =...
How To Solve 4.6
Algoritma:
Compile program.
Masukkan banyak data yang diinginkan.
Masukkan data satu per satu sesuai banyak diawal.
Program melakukan proses menggunakan perulangan for .
Cetak output
DevC++
#include<iostream> #include<iomanip> using namespace std; main() { int byk,...
How To Solve 4.4
Algoritma:
Compile Program.
Masukkan banyak data yang diinginkan.
Program memproses data dengan menggunakan perulangan dan percabangan.
Cetak output
DevC++
#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) { ...
Langganan:
Postingan (Atom)