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 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
What is a loop? a. a collection of function definitions at the top of a program b. a line of code that defines a variable and assigns it a value c. a program that opens the turtle graphics window d. a block of code that repeats a specific number of times
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
Health, 21.01.2021 17:00
question
Mathematics, 21.01.2021 17:00
question
History, 21.01.2021 17:00
question
Health, 21.01.2021 17:00
question
Mathematics, 21.01.2021 17:00
Questions on the website: 13722362