ONLINE COMPILERS
LIBRARY
MANUAL PAGES & DOCS
CONTACT
Latest Users' Questions
User Submitted Source Code!
Description:
DQCalculator
Language: C/C++
Code:
DQCalculator
Language: C/C++
Code:
#include<stdio.h>
main ()
{
int baseStat, maxUpgrade, total;
printf ("\tBase Stat >> ");
scanf ("%d", &baseStat);
printf ("\tMax Upgrade >> ");
scanf ("%d", &maxUpgrade);
maxUpgrade *= 10;
total = baseStat + maxUpgrade;
printf ("\n\tStat Potential >> %d", total
);
}
main ()
{
int baseStat, maxUpgrade, total;
printf ("\tBase Stat >> ");
scanf ("%d", &baseStat);
printf ("\tMax Upgrade >> ");
scanf ("%d", &maxUpgrade);
maxUpgrade *= 10;
total = baseStat + maxUpgrade;
printf ("\n\tStat Potential >> %d", total
);
}
Comments: