semoga bermanfaat
fungsi kalkulator :
// Kalkulator dengan
fungsi.cpp : Defines the entry point for the console application.
//
#include
"stdafx.h"
#include <iostream>
using namespace std;
float penjumlahan(float a, float b)
{
float hasil;
hasil = a + b;
return hasil;
}
float pengurangan(float a, float b)
{
float hasil;
hasil = a - b;
return hasil;
}
float perkalian(float a, float b)
{
float hasil;
hasil = a * b;
return hasil;
}
float pembagian(float a, float b)
{
float hasil;
hasil = a / b;
return hasil;
}
void main()
{
float...