MAths problem... can u answer it?
MAths problem... can u answer it?
Find the smallest number which can be
multiplied by 112 to give a square number.
talking trash lah... if u can, good. Sec 1 question. haha
multiplied by 112 to give a square number.
talking trash lah... if u can, good. Sec 1 question. haha
"the more u sweat in training, the less u bleed in battle"
Click below for free tabata timer...
http://www.speedbagforum.com/timer
Click below for free tabata timer...
http://www.speedbagforum.com/timer
- galapogos
- GM, Team Biceps
- Posts: 10410
- Joined: Tue Jan 13, 2004 2:35 am
- Location: In front of my computer
- Contact:
Re: MAths problem... can u answer it?
Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.
talking trash lah... if u can, good. Sec 1 question. haha
Code: Select all
#include <stdio.h>
#include <math.h>
void main()
{
const int num = 112;
int i;
double result;
for (i=1;i<112;i++)
{
result = sqrt(i*num);
if (result == floor(result))
break;
}
printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i);
}
haha....
ok lah.. i show u how to derive the answer...
112
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2)
so... from the above.... answer is?
ok lah.. i show u how to derive the answer...
112
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2)
so... from the above.... answer is?
"the more u sweat in training, the less u bleed in battle"
Click below for free tabata timer...
http://www.speedbagforum.com/timer
Click below for free tabata timer...
http://www.speedbagforum.com/timer
huh??
"the more u sweat in training, the less u bleed in battle"
Click below for free tabata timer...
http://www.speedbagforum.com/timer
Click below for free tabata timer...
http://www.speedbagforum.com/timer
112Sufian wrote:haha....
ok lah.. i show u how to derive the answer...
112
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2)
so... from the above.... answer is?
= 2 X 2 X 2 X 2 X 7
= (2 X 2 X 7) X (2 X 2) (7)
ans 7
got prize?
Last edited by manyu882 on Mon Jan 12, 2009 7:53 pm, edited 1 time in total.
POSB saving account no: 209-06968-7
Re: MAths problem... can u answer it?
Basket... use C programming to solve it ah?galapogos wrote:Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.
talking trash lah... if u can, good. Sec 1 question. hahaCode: Select all
#include <stdio.h> #include <math.h> void main() { const int num = 112; int i; double result; for (i=1;i<112;i++) { result = sqrt(i*num); if (result == floor(result)) break; } printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i); }
Nothing posted by this fat bastard should be taken seriously. SOME are for entertainment purposes only.
- galapogos
- GM, Team Biceps
- Posts: 10410
- Joined: Tue Jan 13, 2004 2:35 am
- Location: In front of my computer
- Contact:
My program already calculates and prints out the answer lor. Don't believe save it as main.c, boot up in Linux and run "gcc main.c -o main -lm" and then run "./main" and see what it prints out. Don't need to be 112 or square root or multiplication also. Can solve for every number and every operation. Power right? 
chim. i learn c prog before but i throw back everything to lecturer liao. tt one u post out suddenly i remember what i learn.galapogos wrote:My program already calculates and prints out the answer lor. Don't believe save it as main.c, boot up in Linux and run "gcc main.c -o main -lm" and then run "./main" and see what it prints out. Don't need to be 112 or square root or multiplication also. Can solve for every number and every operation. Power right?
POSB saving account no: 209-06968-7
- Steph_Parker
- Pro and hardcore
- Posts: 1446
- Joined: Wed Dec 03, 2008 12:12 pm
you forgot to add that you're fat too =)Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not
Working "hard," or the perception of working hard, doesn't really mean anything. Sweating, vomiting, and breathing hard could be a good workout or a tropical disease kicking in.-Dan John
- Steph_Parker
- Pro and hardcore
- Posts: 1446
- Joined: Wed Dec 03, 2008 12:12 pm
ehWeib wrote:you forgot to add that you're fat too =)Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not
THANKS FOR REMINDING ME THAT AH.
TRYING TO BE FUNNY ISSIT.
ok la ok la, am fat lah =(
Beauty may only be skin deep, but lethal is to the bone.
That is actually a misnomer. The people who are good at math are good because they try harder and more often than those who are supposingly sucky at math.Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not
Work Smart, Work Hard, and Kick Ass.
Skinny twig... Time to bulk up!
Skinny twig... Time to bulk up!
You like to call yourself fat then i acknowledge lo..Steph_Parker wrote:ehWeib wrote:you forgot to add that you're fat too =)Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not
THANKS FOR REMINDING ME THAT AH.
TRYING TO BE FUNNY ISSIT.
ok la ok la, am fat lah =(
besides take a bigger one to call out smaller one right
Working "hard," or the perception of working hard, doesn't really mean anything. Sweating, vomiting, and breathing hard could be a good workout or a tropical disease kicking in.-Dan John
- Steph_Parker
- Pro and hardcore
- Posts: 1446
- Joined: Wed Dec 03, 2008 12:12 pm
xiao pang =(Weib wrote:You like to call yourself fat then i acknowledge lo..Steph_Parker wrote:ehWeib wrote:you forgot to add that you're fat too =)Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not
THANKS FOR REMINDING ME THAT AH.
TRYING TO BE FUNNY ISSIT.
ok la ok la, am fat lah =(
besides take a bigger one to call out smaller one right
Beauty may only be skin deep, but lethal is to the bone.
Re: MAths problem... can u answer it?
wah chius use C... i ish use php....galapogos wrote:Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.
talking trash lah... if u can, good. Sec 1 question. hahaCode: Select all
#include <stdio.h> #include <math.h> void main() { const int num = 112; int i; double result; for (i=1;i<112;i++) { result = sqrt(i*num); if (result == floor(result)) break; } printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i); }
Derek wrote:That is actually a misnomer. The people who are good at math are good because they try harder and more often than those who are supposingly sucky at math.Steph_Parker wrote:never like math cuz i suck at it.
they say...
people who are good at math are intelligent.
guess im not
eh the book got say something along this line or not.
if never solve the question will never feel the satisfaction. then solve already want to solve somemore question. until the brain is tired.
POSB saving account no: 209-06968-7
- galapogos
- GM, Team Biceps
- Posts: 10410
- Joined: Tue Jan 13, 2004 2:35 am
- Location: In front of my computer
- Contact:
Re: MAths problem... can u answer it?
i ish old school, dunno php wan.Twxian wrote:wah chius use C... i ish use php....galapogos wrote:Sufian wrote:Find the smallest number which can be
multiplied by 112 to give a square number.
talking trash lah... if u can, good. Sec 1 question. hahaCode: Select all
#include <stdio.h> #include <math.h> void main() { const int num = 112; int i; double result; for (i=1;i<112;i++) { result = sqrt(i*num); if (result == floor(result)) break; } printf("The smallest number which can be multiplied by %d to give a square number is %d\n", num, i); }
I posted this question because I realise that when posting this to the sec 3, almost half of them asked for more clue. Thus, being stuck because cannot figure out the 1st step.
During our time in school (Goi, Xian, me, Ben,etc), I believe these questions are the norm.
During our time in school (Goi, Xian, me, Ben,etc), I believe these questions are the norm.
"the more u sweat in training, the less u bleed in battle"
Click below for free tabata timer...
http://www.speedbagforum.com/timer
Click below for free tabata timer...
http://www.speedbagforum.com/timer