Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Japa ( 14 years ago )
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
main()
{
float a,b,po,po2,total,i;
printf("Digite o nivel para descobrir o XP que e preciso");
scanf("%f", &a);
a -= 1;
total = 0;
for(i = 1; i <= a; i++)
{
po = i / 7;
po2 = pow(2,po);
b = (i/4) + (75*po2);
total += b;
printf("\nTotal: %f", total);
printf("Pow : %f", po);
printf("Po2 : %f", po2);
printf("B : %f", b);
}
printf("\n\n\n\n\n\n\n\n\n\n%f", total);
getch();
}
Revise this Paste