I need help writing a simple program. My Declaration is: length, width, area and perimeter. My Input is length and width. The Calculations are: p=2*(l+w) and a=l*w and my Output is p and a can anyone please help me write this program. I just started out doing this and I am very confused.
southernd0529
-4
Newbie Poster
Recommended Answers
Jump to PostWhat code do you have done so far?
EDIT: if your answer is none... start here:
#include <iostream> using namespace std; int main(int argc, char **argv) { // Declare Length, width, area and perimeter // Display message about length to user // Get length from user …
All 4 Replies
Comatose
290
Taboo Programmer
Team Colleague
southernd0529
-4
Newbie Poster
southernd0529
-4
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.