English, asked by meena2912, 9 months ago

#include struct Distance{ int f; float i; }d1 , d2, sum; int main() { std::cin >> d1.f; std::cin >> d1.i; std::cin >> d2.f; std::cin >> d2.i; sum.f = d1.f+d2.f; sum.i = d1.i+d2.i; if(sum.i > 12) { ++ sum.f; sum.i -= 12; } std::cout<< sum.f <<" "<< sum.i; }

Answers

Answered by ishika7968
0

 \huge\boxed{\boxed{\fcolorbox{white}{pink}{Answer}}}

↬What we have to tell in this question??

Please provide us the all required knowledge about the question.....

Answered by AtulSisodiya
0

Answer:

12 1.6

Explanation:

as f is int and sum is in float

Similar questions