![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 15.04.2020 21:39 jayliahj
Complete the function ConvertToFeetAndInches to convert totalInches to feet and inches. Return feet and inches using the HeightFtIn struct. Ex: 14 inches is 2 feet and 2 inches.
#include
typedef struct HeightFtIn_struct {
int feet;
int inches;
} HeightFtIn;
HeightFtIn ConvertToFeetAndInches(int totalInches) {
HeightFtIn tempVal;
/* Your solution goes here */
}
int main(void) {
HeightFtIn studentHeight;
int totalInches;
scanf("%d", &totalInches);
studentHeight = ConvertToFeetAndInches(totalInches) ;
printf("%d feet and %d inches\n", studentHeight. feet, studentHeight. inches);
return 0;
}
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 17:00
How can data be added in a table by using what view
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
You know the right answer?
Complete the function ConvertToFeetAndInches to convert totalInches to feet and inches. Return feet...
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 22.03.2021 19:30
![question](/tpl/images/cats/mat.png)
Mathematics, 22.03.2021 19:30
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mkx.png)
Arts, 22.03.2021 19:30
![question](/tpl/images/cats/mat.png)
Mathematics, 22.03.2021 19:30
![question](/tpl/images/cats/mir.png)
World Languages, 22.03.2021 19:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
English, 22.03.2021 19:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 22.03.2021 19:30