Assalamu’alaikum w.w.,
Hallo
semua ....
Program
untuk mencari hasil kali dari dua buah bilangan, yang memiliki Input : misalkan a, b semua integer.
Buat algoritma dan program untuk mencari hasil kali dua buah bilangan.
Analisis :
- Input : Misalkan a,b semua integer
- Proses : hasil <=a*b
- Output : Tulis (hasil)
Algoritma :
- Menerima Inputan dari krdua bilangan
- Mengalihkan kedua bilangan tersebut
- Menampilkan hasil perkalian dari kedua bilangan
Berikut ini adalah Gambar Programnya yang menggunakan Aplikasi RAPTOR :
Output/hasil
compiler dari program tersebut :
Hasil Outputnya
dari hasil Perkalian Angka : 7*8 = 56
Berikut ini adalah Gambar Programnya yang
menggunakan Aplikasi Dev 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 a,b,jumlah;
cout<<"Masukkan = ";cin>>a;
cout<<"Masukkan = ";cin>>b;
jumlah=a*b;
cout<<"Hasil = "<<jumlah;
return 0;
}
#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 a,b,jumlah;
cout<<"Masukkan = ";cin>>a;
cout<<"Masukkan = ";cin>>b;
jumlah=a*b;
cout<<"Hasil = "<<jumlah;
return 0;
}
Output/hasil
compiler dari program tersebut :





Easy "water hack" burns 2 lbs OVERNIGHT
BalasHapusOver 160 thousand women and men are utilizing a easy and SECRET "liquids hack" to burn 2lbs each night while they sleep.
It's painless and it works all the time.
This is how you can do it yourself:
1) Get a drinking glass and fill it with water half glass
2) Then follow this weight loss hack
and you'll become 2lbs thinner as soon as tomorrow!