#2
beyondziming2011-01-29 09:06
|
#include<iostream.h>
int main()
{
using namespace std
int carrots; //declare an integer variable
carrots=25; //assing a value to the variable
cout<<"I have";
cout<<carrots; //display the value of the variable
cout<<"carrots.";
cout<<endl;
carrots=carrots-1; //modify the
cout<<"Crunch,crunch.Now I have"<<carrots<<"carrots."<<endl;
getch();
return 0;
}