When equal amounts are invested in each of three accounts paying a1% a2% and a3% interest, one year's combined interest income is $S. How much is invested in each account?(Input a1, a2, a3and S. Calculate and output result)
Can someone just finish this code based on this question:
#include <iostream>
using namespace std;
int main()
{
int a1,a2,a3,s
cout << "Enter a1,a2, a3, s" << endl;
cin >>a1>>a2>>a3>>s;