• Check out the relaunch of our general collection, with classic designs and new ones by our very own Pissog!
  • The moderator of this forum is jetou.
  • Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.

I made a calculator to calculate beat ups power because of one person

Cancel cult

murkrow guy
Screenshot 2024-03-11 10.09.55 AM.png

i had nothing else better to do lol
#include "util.h"
int main(){
int thing1=readInt("Your first pokemon's attack (type 0 if unusable): ");
int thing2=readInt("Your second pokemon's attack (type 0 if unusable): ");
int thing3=readInt("Your third pokemon's attack (type 0 if unusable): ");
int thing4=readInt("Your fourth pokemon's attack (type 0 if unusable): ");
int thing5=readInt("Your fifth pokemon's attack (type 0 if unusable): ");
int thing6=readInt("Your sixth pokemon's attack (type 0 if unusable): ");
double data1=(thing1/10)+5;
int bp1=data1;
double data2=(thing2/10)+5;
int bp2=data2;
double data3=(thing3/10)+5;
int bp3=data3;
double data4=(thing4/10)+5;
int bp4=data4;
double data5=(thing5/10)+5;
int bp5=data5;
double data6=(thing6/10)+5;
int bp6=data6;
int main=data1+data2+data3+data4+data5+data6;
cout<<data1<<endl<<data2<<endl<<data3<<endl<<data4<<endl<<data5<<endl<<
data6<<endl<<main;}
like always, this is in c++ and requires util.h. also, I have no way to test this, so this may just not work.
 
Last edited:
Back
Top