Tugas Alpro PPT Minggu ke 2 Kasus 2.2
- Bua algoritma dan program untuk mencari hasil kali dari dua buah bilangan!
- Analisis :
- Input : misalkan a,b semua integer
- Proses : hasil = a,b
- Output : tulis (hasil)
Program C++
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a,b,jum;
cout<<"masukkan nilai a = ";cin>>a;
cout<<"masukkan nilai b = ";cin>>b;
jum=a*b;
cout<<"hasil perkalian = "<<jum;
return 0;
}
ABOUT THE AUTHOR
A web designer from India. And then you write some more information about yourself like this to fill out the space that is left.


0 komentar:
Posting Komentar