
-----------------------------------
changming22x
Fri Apr 03, 2009 11:31 pm

What am i doing wrong?
-----------------------------------
hey i just started C++, like literally i jsut started 20 min ago lol, and  umm i made this programe it gives the wrong output for the value calculated im not sure if the formula i used was wrong but it outputs a value followed by a "x" then some other value its confusing lol, would someone take their time and help me out? thanks

#include 

using namespace std;

int main()
{
int birth,cyear,byear,heartb,totalb,totalbb;

  coutbirth;
  cin.ignore();
  coutcyear;
  cin.ignore();
  coutheartb;
  
  byear = cyear - birth;
  totalb = byear * heartb;
  totalbb = totalb *525600;
  
  cout