0

Duct Tape

All Tests Passed except the 5th

28th Jul 2023, 7:17 AM
Aakash Gupta
Aakash Gupta - avatar
3 ответов
+ 9
Aakash Gupta , Use ceil function instead round Try this, https://code.sololearn.com/cHYkaSwp6F61/?ref=app
28th Jul 2023, 7:23 AM
Riya
Riya - avatar
+ 2
Thanks Riya
28th Jul 2023, 7:30 AM
Aakash Gupta
Aakash Gupta - avatar
0
#include <stdio.h> int main() { float areaDuct = 60 * 2/12; float l,b; scanf("%f%f", &l,&b); float areaDoor = 2*l*b; float Tape = areaDoor/areaDuct; float roundnum = round(Tape); printf("%.f",roundnum); return 0; }
28th Jul 2023, 7:17 AM
Aakash Gupta
Aakash Gupta - avatar