Monday, March 21, 2016

TUGAS 2.2

enghitug Perkalian 2 variabel dengan C++ dan Raptor


dev 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;
 int b;
 cout<<"A =";
 cin>>a;
 cout<<"B =";
 cin>>b;
 cout<<"Jumlah perkalian = ";
 cout<<a*b;
 return 0;
}
Hasil setelah di kompile :


No comments:

Post a Comment

mencari huruf pada kalimat

#include <iostream> using namespace std; int main() {   int a,x;   int y=0,b=0,MAKS = 256;   char kata[MAKS],huruf[M...