Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
main()
{
int a;
int b;
int c;
int d;
int out;
//Get values for a,b,c,d
out = (a * b) + (c / d);
//Do something with out
}
Exo said:Assuming a, b, c and d and out are just integer variables:
Code:main() { int a; int b; int c; int d; int out; //Get values for a,b,c,d out = (a * b) + (c / d); //Do something with out } thanks for your reply
the ( ) around a * b and c / d should not be nessecairy as multiply and divide have a higher priority then add, but it doesn't hurt to put them there