Write the C code below and take snapshot of the output. Write comment next to every...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write the C code below and take snapshot of the output. Write comment next to every line what function the code does. (Don't worry if you do not understand what is done exactly, do your best!) #include int main() { char your_name [15]; int your age, brother_age, difference; "); printf("Whats your name? scanf("%s", &your_name); printf("How old are you? "); scanf("%d", &your_age); printf("How old is your brother? (have a fictional brother if you don't have one!) scanf("%d", &brother age); difference = your_age-brother_age; printf("You are %d years old and your name is %s ", your_age, your_name); printf("You are %d years older than your brother ", difference); return(0); "); Write the C code below and take snapshot of the output. Write comment next to every line what function the code does. (Don't worry if you do not understand what is done exactly, do your best!) #include int main() { char your_name [15]; int your age, brother_age, difference; "); printf("Whats your name? scanf("%s", &your_name); printf("How old are you? "); scanf("%d", &your_age); printf("How old is your brother? (have a fictional brother if you don't have one!) scanf("%d", &brother age); difference = your_age-brother_age; printf("You are %d years old and your name is %s ", your_age, your_name); printf("You are %d years older than your brother ", difference); return(0); ");
Expert Answer:
Answer rating: 100% (QA)
include stdio h int main char yourname15 int yourage brotherage difference Prompt the ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Construct the pseudoinverse of A. Begin by using a matrix program to produce the SVD of A, or, if that is not available, begin with an orthogonal diagonalization of A T A. Use the, pseudoinverse to...
-
QUESTION 14 Aya and Harumi would like to buy a house and their dream house costs $500,000. They have $50,000 saved up for a down payment but would still need to take out a mortgage loan for the...
-
Question: Old MathJax webview Old MathJax webview i need ans of these question but the source is alot Old MathJax webviewOld MathJax webview i need ans of these question but the source is alot these...
-
I need one or more queries on the basis of database of netflix. I can upload the picture of database Create Index Modify Table Schema Delete Table Print CREATE TABLE Dates ( [PK] INTEGER PRIMARY KEY...
-
Use figure 22 to find all angles between 0 and 2Ï satisfying the given condition. 9. cos θ = 1 11. tan θ = -1 13. sin x = 23/2 3 12 2 3r 4 2 2 612'2 0 (0,0) 11 7A...
-
Air enters a duct with a mass flow rate of \(35 \mathrm{lbm} / \mathrm{sec}\) at \(T_{1}=520^{\circ} \mathrm{R}\) and \(p_{1}=20 \mathrm{psia}\). The duct is square and has an area of \(0.64...
-
1.2 MNEs and Operation in Global Markets. What are the factors that affect the decisions of multinational enterprises to operate in global markets?
-
The following are five independent situations. 1. The audit firm, Weaver and Jones, LLP, received a subpoena for its documentation related to the audit of Westbrook Corporation's financial...
-
Burnham Corporation is considering leasing a new equipment. The lease lasts for 8 years. The lease calls for 8 payments of $235,000 per year with the first payment occurring immediately. The...
-
Two equal sides of the isosceles triangle are given by equation ax+by+c=0 and lx+my+n=0. The slope of the third side is...?
-
Consider the structural problem shown in Figure 4.1a y X L N Figure 4.1a The "slab" of linearly elastic material is subjected to shear loads applied on the external surface and parallel to the...
-
In the following snippet code: double x; int a = 5, b = 10; x = b/a; what will be the value of x?
-
Factor: 2-x-42. Provide your answer below:
-
The famous Hope Diamond at the Smithsonian National Museum of Natural History weighs 45.52 carats. Diamond is a crystalline form of carbon. How many moles of carbon are in the Hope Diamond (1 carat =...
-
In the combustion of propane gas,C 3 H 8 , what volume of carbon dioxide gas isproduced when a 20.0 lbs. (9.1 kg) tank is completely consumed at26.0 C and 1.0 atm ofpressure?
-
Accustart Ltd. acquired 38% of the common shares of Lecce Ltd. on January 1, 2024, by paying $5.76 million for 144,000 shares. Lecce declared a cash dividend of $0.60 per share in each quarter that...
-
Suppose the concentration of glucose inside a cell is 0.1 mm and the cell is suspended in a glucose solution of 0.01 mm. a. What would be the free energy change involved in transporting 10-o mole of...
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
Van makes an investment in a partnership in 2012. Van's capital contributions to the partnership consisted of $30,000 cash and a building with an adjusted basis of$70,000, subject to a nonrecourse...
-
Linda and Richard are married and file a joint return for 2012. During the year, Linda, who works as an accountant for a national airline, used $2,100 worth of free passes for travel on the airline;...
-
\(\sqrt{17} \times(5+3.6)=\sqrt{17} \times 5+\sqrt{17} \times 3.6\) Identify the property of real numbers that is being illustrated.
-
\(\frac{3}{\sqrt{7}} \times 1=\frac{3}{\sqrt{7}}\) Identify the property of real numbers that is being illustrated.
-
\(5 \times 13 \times 4\) Use properties of real numbers and mental math to calculate the expression.
Study smarter with the SolutionInn App