Hi
I have been trying to fix the error for the last half an hour. For heaven's sake, could you please help me? Please do. Thanks a lot.
When I run the code the screen just starts scrolling continuously.
Code:
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
float m, a, f;
char v;
do
{
cout << "enter mass: ";
cin >> m;
cout << "enter acceleration: ";
cin >> a;
f = m*a;
cout << "force is: " << f << endl;
cout << "do you want another calculation? press y/n";
cin >> v;
}
while (v != 'n');
system("pause");
}