Thread: C++ Help
View Single Post
  #3  
Old 04-22-2011, 12:03 AM
Jburks8 Jburks8 is offline
Kobold


Join Date: Sep 2010
Posts: 116
Default

Awesome man, I'll try and post something there for sure. The help that I got from my instructor was this:

#include <iostream.h>

void main()

{int amount, Q, D, N, P;



Q=0; D=0; N=0; P=0;



cout << "Enter amount" << endl;

cin >> amount;

cout<<endl;


if (amount>24) {Q=Q+1; amount=amount-25;}

if (amount>24) {Q=Q+1; amount=amount-25;}

if (amount>24) {Q=Q+1; amount=amount-25;}

if (amount>9) {D=D+1; amount=amount-10[You must be logged in to view images. Log in or Register.]

// go a few more lines