/*
The final code completed
*/
#include <stdio.h>
//prototypes
void main(void);
int getUserInput(void);
int calculateArea(length, width);
int calculatePerimeter(width, length);
int outputToScreen(area, perimeter);
////////////////////////////
void main(void)
{
int perimeter=0;
int...
How do you get the var's to move from main to a module, return that data and pass it on to the next module?
This is the code that i have come up with so far, I am attempting to make a program that calculates the area and perimeter of a rectangle.
#include <stdio.h>
//prototypes
void main()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.