Assalamualaikum wr.wb
hy guys, what's you guys. how are you today. i hope you always be better than yesterday.
maaf nih guys lagi sibuk2nya nih memuat laporan atau biasa disebut tugas
jadi nih blog jadinya kudet yah hehehe ( kurang upddate) tapi tenang karena saya selalu aktif kok heheeh.
ok i dont wanna waste your time, you"ve to see my program let's check this out :
SOURCE CODE C++ DAN RAPTOR:
#include <iostream>
#include <math.h>
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 x,y, hasil =0;
cout<<"menghitung perkalian dengan cara penjumlahan "<<endl;
cout<<"masukkan nilai x=";cin>>x;
cout<<"masukkan nilai y=";cin>>y;
for(int i=1;i<=abs(y);i++){
hasil +=x;
if(y<0) hasil=-hasil;
cout<<x<<"x"<<y<<"="<<hasil<<endl;
}
return 0;
}
0 komentar:
Posting Komentar