Hey there! We receieved your request
Stay Tuned as we are going to contact you within 1 Hour
One of our academic counsellors will contact you within 1 working day.
Click to Chat
1800-5470-145
+91 7353221155
Use Coupon: CART20 and get 20% off on all online Study Material
Complete Your Registration (Step 2 of 2 )
Sit and relax as our customer representative will contact you within 1 business day
OTP to be sent to Change
find the least no which when divided by 17 ,16,15 and the remainder is 3.10,0 respectively means u have to find
that no which is divided by 17 then it leaves the remainder
3 when divided by 16 leaves remainder 10 and when divi
ded by 15 leaves remainder 0
The code for the above problem is written in python as follos
for x in range(0,1000): a=15*x y=a%16 if y==10 : z=a%17 if z==3: print(a)
The output of the above code is
3930801012090
so the least possible value is 3930
the ans which u provide that is wrong this ans is not satisfying my condition plz improve it
We can find the value using c program.....
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int a,x,y,z,n;
x=0;
y=3;
z=10;
for(a=0;a<=100;a++)
if((y==a%17) && (z==a%16) && (x==a%15))
printf("%d",a);
}
getch();
we can get the output as 3930 and 8010 (from 0 to 10000)
so the lowest number is 3930
Get your questions answered by the expert for free
You will get reply from our expert in sometime.
We will notify you when Our expert answers your question. To View your Question
Win Gift vouchers upto Rs 500/-
Register Yourself for a FREE Demo Class by Top IITians & Medical Experts Today !