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;
}
#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