0
Please I do not have any idea how to solve this problem
https://www.sololearn.com/coach/4?ref=app I am a beginner.,Thank you.
30 Answers
+ 1
It simple, you have two houses are giving out dollar bills, and suppose the number of houses that you visited is (n). Therefore the porcentage of one random item pulled from your bag is a dollar bill it 2/n*100=> 200/n ....ā
+ 3
Big upš
scanf("%d", &h);
int a=200/h;
if(200%h) a++;
printf("%d",a);
+ 2
math import ceil
houses = int(input());
prc= ceil((2 * 100) / houses);
printf(prc);
+ 2
#include <stdio.h>
int main() {
int h, a;
scanf("%d", &h);
//h=number of houses
//a= Probability of getting doller bills
//your code goes here
a=100-(h-2)*100/h;
printf ("%d",a);
return 0;
}
// I think it will be helpful to you š
+ 2
show my page
+ 2
TheĀ <applet>Ā tag in HTML was used toĀ embed Java applets into any HTML document. TheĀ <applet>tag was deprecated in HTML 4.01, and itās support has been completely discontinued starting from HTML 5. Alternatives available in HTML 5
+ 1
Try this
houses = int(input())
import math
percent = math.ceil( 2 * 100 / houses )
print ( percent )
0
Simple arithmetic problem. You have to learn first how If else Works.
0
Yes for sure I gonna use the if else statement but I don't have any idea about the conditions
Thank you busydev.
0
But please why exactly 200
0
Or you can use ciel() easily but it stell work anyway
0
Ciel()??is this a function?
0
Okay I get you now.
Thanks
0
You're welcome
0
If (200/h)=if(200/h!=0)??
0
I mean ceil() in math header file...
0
Oui les deux expression sont equivalent
0
Ah d'accord mais est ce qu'il est nƩcessaire d'utiliser la fonction ciel.
Pardon mais j'ai aucune idĆ©e Ć propos de cette fonction
0
Non,non ce n'est pas nƩcessaire
0
Alright. Thank so much for your help