#include<iostream.h>
main()
{
//declare variable
float num1,num2,num3,calculate;
//input1
cout<<"please insert number for num1 =";
cin>>num1;
//input2
cout<<"please insert number for num2 =";
cin>>num2;
//input3
cout<<"please insert number for num3 =";
cin>>num3;
//formula
calculate =(num1*num2)-num3+(num2/num1);
//output
cout<<"the answer for the problem is ="<<calculate;
return 0;
}
No comments:
Post a Comment