Tuesday, September 10, 2013

tipe data C "double"

Double

#include <iostream>
using namespace std;
int main()
{
    int x,y;
    double z;
   
     cout << "masukan nilai x : ";
     cin>> x;
   
     cout << "masukan nilai y : ";
     cin>> y;
   
     z = x*y;
   
     cout << "hasil perkaliannya = ";
     cout << x << "x" <<  y << " = " << z;
     system ("pause");
     return 0;
     
}

0 comments:

Post a Comment

sealkazzsoftware.blogspot.com resepkuekeringku.com