Joined
Last Seen
0 Reputation Points
60% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #22.5K
I guess I am really having trouble with what's inside the function How do I get it out.. Suppose I ask a yes or no question and if the answer is no then break if the answer is yes then compute that formula. okay [CODE] int ThingYesNo; doubleThingHeight do { … |
|
Re:
[CODE]#include<iostream.h> #include<conio.h> void add(){ clrscr(); int a,b,c; cout<<"Enter number:"<<endl; cin>>a; cout<<"Enter number:"<<endl; cin>>b; c=a+b; cout<<"The total is: "<<c<<endl; getch(); clrscr(); } void sub(){ clrscr(); int a,b,c; cout<<"Enter number:"<<endl; cin>>a; cout<<"Enter number:"<<endl; cin>>b; c=a-b; cout<<"The total is: "<<c<<endl; getch(); clrscr(); } void mul(){ clrscr(); int a,b,c; cout<<"Enter number:"<<endl; cin>>a; cout<<"Enter number:"<<endl; … |