Home »
Ask & Discuss
»
Mathematics
« Back to Discussion
Algebra
Comments (7)
If you're a computer science student, U can also do it using in C as well!! (Yeah I know this is kinda ridiculous, but what the heck)
#include<stdio.h>
#include<conio.h>
#include<conio.h>
int main()
{
int a,b,c,d=0;
system("cls");
for(a=1;a<=6;a++)
{
for(b=1;b<=6;b++)
{
for(c=1;c<=6;c++)
if(a+b+c==11)
{ printf("%d %d %d\n",a,b,c);
d++;
}}}
printf("Hence the total number of pairs is %d",d);
return(0);
}
As Kapil has shown U get the output as 27 Pairs (3+4+5+6+5+4 = 27)!! chk it out yourself!!
cheers!! :)
Preparing for JEE?
Kickstart your preparation with new improved study material - Books & Online Test Series for JEE 2014/ 2015
@ INR 4,950/-

For Quick Info
Find Posts by Topics
Physics
TopicsMathematics
Chemistry
Biology
Institutes
Parents Corner
Board
Fun Zone
|
| 1. |
|
Bipin Dubey
|
| 2. |
|
Himanshu
|
| 3. |
|
Hari Shankar
|
| 4. |
|
edison
|
| 5. |
|
Sagar Saxena
|
| 6. |
|
Yagyadutt Mishr..
|












DICE 1: DICE 2: DICE 3:
1 4 6
1 5 5
1 6 4
2 3 6
2 4 5
2 5 4
2 6 3
3 2 6
3 3 5
3 4 4
3 5 3
3 6 2
SIMILARLY, 6 WAYS, WITH 4 ON DICE 1, 5 WAYS, WITH 5 ON DICE 1, 4 WAYS, WITH 6 ON DICE 1.
SO, TOTAL WAYS = 3+4+5+6+5+4 = 27.