Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <cmath>
int main() {
double networkHashrate, yourHashrate, blockTargetTime, blockReward, exchangePrice, costPerKWH;
int powerConsumptionWatts; // Added input for power consumption
std::cout << "Enter the network hashrate (megahashes per second): ";
std::cin >> networkHashrate;
std::cout << "Enter your hashrate (kilohashes per second): ";

Keybase proof

I hereby claim:

  • I am maxnflaxl on github.
  • I am maxnflaxl (https://keybase.io/maxnflaxl) on keybase.
  • I have a public key ASDTgbj9owRR1PrH4s7q4CyraEWiYLxmT78pYsmO-js02wo

To claim this, I am signing this object: