menghitung a * b dengan metode penjumlahan
#program c++ :
#include <cstdlib>
#include <iostream>
#include <math.h>
using namespace std;
int main(int argc, char *argv[])
{
int a,b,jumlah=0;
cout<<"program menghitung perkalian dengan cara penjumlahan"<<endl;
cout<<"Masukkan nilai a =";cin>>a;
cout<<"Masukkan nilai b =";cin>>b;
for(int i=1;i<=abs(b);i++);
jumlah+=a*b;
if(b<0)jumlah = -jumlah;
cout<<a<<" x "<<b<<" = "<<jumlah;
cout<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}
#Screenshot
Blackjack Casino in Columbus, OH - Mapyro
BalasHapusCasino Type. Blackjack. A blackjack variant of standard casino games can be 충청남도 출장안마 found in many casinos 김천 출장샵 throughout 대구광역 출장마사지 the United 경산 출장마사지 States. Blackjack also 제천 출장샵