С++ в Code Blocks
Объяснение:
#include <iostream>
using namespace std;
int main()
{
int s, v;
float x;
cout << "Input S: ";
cin >> s;
cout << "Input V: ";
cin >> v;
x = (s-v)/2;
cout << "Result: " << endl;
cout << " in first day " << x << endl;
cout << " in second day " << x+v << endl;
}
С++ в Code Blocks
Объяснение:
#include <iostream>
using namespace std;
int main()
{
int s, v;
float x;
cout << "Input S: ";
cin >> s;
cout << "Input V: ";
cin >> v;
x = (s-v)/2;
cout << "Result: " << endl;
cout << " in first day " << x << endl;
cout << " in second day " << x+v << endl;
}