Now you can Subscribe using RSS

Submit your Email

Kamis, 31 Maret 2016

#Kasus 5.4

Unknown
#include <iostream>
#include <math.h>
using namespace std;
int kali(int m, int n)
{    int i, hasil=0;
     for (i=1; i<=abs(4); i++)
           hasil += m;
     if (n<0) return(-hasil); else return(hasil);
}

main() {
     int a, b;
     cout << "Masukkan bilangan  : ";  cin >> a;
     cout << "Akan dikali dengan : ";  cin >> b;
     cout << "Nilai " << a << " x " << b << " = " << kali(a,b);
     return 0;
}



Unknown / Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 komentar:

Posting Komentar

Coprights @ 2016, Blogger Templates Designed By Templateism | Distributed By Rika Nursita