subject
Computers and Technology, 28.06.2019 18:30 saharB

Convert activity3.c below to a multi-file c program with 3 files: activity3.c, mymath. h, and mymath. c. give the gcc command to build the new program. don’t forget the include guards! when you are done, copy each file to this document in the appropriate place.
/* activity 3 - create a header file */
#include
#define pi 3.14159
int square(int x) {
return x * x;
}int main() {
int radius;
double area;
printf("enter the radius: ");
scanf("%d", & radius);
area = pi * square(radius);
printf ("the area of a circle with radius %d is %.2f\n", radius, area);
return 0;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
The isometric projection camera technique provides an illusion of perspective by using things like parallax scrolling to create the illusion of 3d in a 2d game
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
Where would you click to edit the chart data?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
How can you make your column headings stand out?
Answers: 1
You know the right answer?
Convert activity3.c below to a multi-file c program with 3 files: activity3.c, mymath. h, and mymat...
Questions
question
Mathematics, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
question
Social Studies, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01
question
Mathematics, 16.10.2020 17:01