ok i was just fiddiling around macking this program to see what would happen and it worked fine but for some reason now it doesnt do what the program tells it to do
this is my code
"#include <iostream>
using namespace std;
int main()
{
int taco,pizza,chicken,hamburger,hotdog,;
taco=0;
cout<<"from 1 to 3 enter what taco is then press enter";
cin>>taco;
if(taco=1){pizza=2;}
if(taco=2){pizza=3;}
if(taco=3){pizza=4;}
if(pizza=2){chicken=3;}
if(pizza=3){chicken=4;}
if(pizza=4){chicken=5;}
if(chicken=3){hamburger=4;}
if(chicken=4){hamburger=5;}
if(chicken=5){hamburger=6;}
if(hamburger=4){hotdog=5;}
if(hamburger=5){hotdog=6;}
if(hamburger=6){hotdog=7;}
cout<<"taco="<<taco<<"pizza="<<pizza<<"chicken="<<chicken<<"hamburger="<<hamburger<<"hotdog="<<hotdog;;
system ("pause");
}";
for some reason no mater what number i use (when runing it) it always puts the answer
taco=3pizza=4chicken=5hamburger=6hotdog=7press any key to continue . . .