Name: Title:

 Name:
ONLINE COMPILERS
LIBRARY
MANUAL PAGES & DOCS
CONTACT

User Submitted Source Code!

Description:
ioioi
Language: C/C++
Code:
#include<iostream.h>
#include<conio.h>
void main()
{
float energi,penghasilan;
float z,a,b,bb,c,cc,d,dd,ee,e,ff,f,gg,g,hh,h,ii,i,jj,j,k,l,m,n,o,p,q,r,s;
cout<<" ENERGI YANG KAMU MILIKI   : ";
cin>>energi;
cout<<" PENGHASILAN 1 PERTARUNGAN : ";
cin>>penghasilan;
a=energi*penghasilan;
b=energi*0.1;
bb=energi-b;
c=bb*0.1;
cc=bb-c;
d=cc*0.1;
dd=cc-d;
e=dd*0.1;
ee=dd-e;
f=ee*0.1;
ff=ee-f;
g=ff*0.1;
gg=ff-g;
h=gg*0.1;
hh=gg-h;
i=hh*0.1;
ii=hh-i;
j=ii*0.1;
jj=ii-j;
k=bb*penghasilan;
l=cc*penghasilan;
m=dd*penghasilan;
n=ee*penghasilan;
o=ff*penghasilan;
p=gg*penghasilan;
q=hh*penghasilan;
r=ii*penghasilan;
s=jj*penghasilan;
z=k+l+m+n+o+p+q+r+s;
{
if(energi<=2)
cout<<" HASIL FIGHT 1  : "<<a<<endl;
cout<<" HASIL FIGHT 2  : "<<k<<endl;
cout<<" HASIL FIGHT 3  : "<<l<<endl;
cout<<" HASIL FIGHT 4  : "<<m<<endl;
cout<<" HASIL FIGHT 5  : "<<n<<endl;
cout<<" HASIL FIGHT 6  : "<<o<<endl;
cout<<" HASIL FIGHT 7  : "<<p<<endl;
cout<<" HASIL FIGHT 8  : "<<q<<endl;
cout<<" HASIL FIGHT 9  : "<<r<<endl;
cout<<" HASIL FIGHT 10 : "<<s<<endl;

cout<<" ENERGI SISA TERAKHIR SETELAH MELAKUKAN 10 KALI PERTEMPUTARN"<<endl;
cout<<"                       ("<<jj<<")                            "<<endl;
cout<<"  UANG YANG DI PEROLEH DARI HASIL 10 FIGHT REFERRAL PERHARI "<<endl;
cout<<"                       ("<<z<<")                           "<<endl;
}}