Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How would I make this C++ run without using using namespace std;? #include using namespace std; int main(){ int pennies,nickel,quarter,dime; //taking quartes as input cout

How would I make this C++ run without using "using namespace std;?"

#include using namespace std; int main(){ int pennies,nickel,quarter,dime; //taking quartes as input cout << "Enter number of quarters: " ; cin >> quarter; //taking dimes as input cout << "Enter number of dimes: "; cin >> dime; //taking nickels as input cout << "Enter number of nickels: "; cin >> nickel; //taking pennies as input cout << "Enter number of pennies: "; cin >> pennies; //calculating number of coins by summingup all coins cout << "You entered ith 6 quarter(s), 7 dime(s), 3 nickel(s) and 3 penn(y/ies)" << quarter+dime+nickel+pennies << " coins" <

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Administrative services, such as wages.

Answered: 1 week ago