0
Can anyone help me with the rounding?
6 Answers
+ 6
Can you please show us your attempt?
+ 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 )
+ 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.
0
Bro just press on the link
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;
}
0
Yes and thanks