Browse Source

getinfo

master
DEW 7 months ago
parent
commit
d9e01990aa
  1. 3
      .gitignore
  2. BIN
      getinfo
  3. 12
      getinfo.cpp

3
.gitignore

@ -1 +1,2 @@
.git
.git
.vscode

BIN
getinfo

Binary file not shown.

12
getinfo.cpp

@ -0,0 +1,12 @@
#include <iostream>
int main()
{
using namespace std;
int carrots;
cout << "How many carrots do you have?" << endl;
cin >> carrots;
cout << "Here are two more. ";
carrots = carrots + 2;
cout << "Now you have " <<carrots<<" carrots." <<endl;
return 0;
}
Loading…
Cancel
Save