0

Can anyone help me with the rounding?

https://www.sololearn.com/coach/4?ref=app

1st Jul 2020, 6:44 AM
Afnan
Afnan - avatar
6 Answers
+ 6
Can you please show us your attempt?
1st Jul 2020, 6:50 AM
Nilesh
Nilesh - avatar
+ 2
Although I don't know C but I can show you it's python version take help from this and just use it just the syntax matters logic is same houses = int(input()) import math ps = math.ceil( 2 * 100 / houses ) print ( ps )
1st Jul 2020, 6:58 AM
Nilesh
Nilesh - avatar
+ 2
Afnan you have shared the link to the question, not your attempt. To share your attempt with us. Copy paste the code in code playground and then share it here.
1st Jul 2020, 7:32 AM
Arsenic
Arsenic - avatar
0
Bro just press on the link
1st Jul 2020, 6:53 AM
Afnan
Afnan - avatar
0
This is c version Nilesh ?😁â˜ș #include <stdio.h> #include <math.h> int main() { int houses,c; scanf("%d", &houses); c=200/houses; if(200%houses==0) printf("%d",c); else printf("%d",c+1); return 0; }
1st Jul 2020, 1:49 PM
DragoCoder
DragoCoder - avatar
0
Yes and thanks
1st Jul 2020, 4:15 PM
Afnan
Afnan - avatar