• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Doing calculations

Booocubs

Newbie
I'm creating a VERY simple application for android, for a game (Ogame).
Now I may add on to this application, but for now this is all I want it to do;
Code:
- The user Inputs their level, 
     - If the user inputs < 5000... 
          - It multiplies the number by 5 to get the max 
          - It multiplies the number by .2 to get the min 
     - If the user inputs 5000 < X < 24999 
          - It multiplies the number by .2 to get the min 
     - If the user inputs >25000  
          - It just displays "You can attack anyone > 5000"
My question is; how do you use variables (Such as input = X) and then from there us that X in equations to create an output?
 
Back
Top Bottom