-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimal_legs_asking.cpp
32 lines (29 loc) · 1.02 KB
/
animal_legs_asking.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <iostream>
using namespace std;
int main()
{
int num = 0;
int all = 0;
std::cout << "NEW UPDATE: TRY IT FOR YOURSELF\n";
std::cout << "How many cows are there? A cow has four legs.\n";
std::cin >> num;
std::cout << "\n";
std::cout << "You have " << num*4 << " cow legs to kick you.\n";
all+=num*4;
std::cout << "\n";
std::cout << "How many ducks are there? A duck has two legs.\n";
std::cin >> num;
std::cout << "\n";
std::cout << "You have " << num*2 << " duck legs to kick you.\n";
all+=num*2;
std::cout << "\n";
std::cout << "How many chickens are there? A chicken has two legs.\n";
std::cin >> num;
std::cout << "\n";
std::cout << "You have " << num*2 << " chicken legs to kick you. THIS PROJECT IS NOT DONE!!! Wait five seconds, please.\n";
all+=num*2;
std::cout << "\n" << "You have in total " << all << " legs to kick you. Fare well with the kicking!\n";
for (int count=0;count<all;count++) {
std::cout << "OOF. \n";
}
}