Click here to Skip to main content
15,898,538 members

Comments by brian 3 (Top 11 by date)

brian 3 26-Jul-12 11:57am View    
@joan murt....plz i have looked at it and still dont understand it...dis is not a homework assignment.. when the user enters 10 as n,it will generate all those values i wrote above.
brian 3 26-Jul-12 10:31am View    
iam also trying to use dis program to find all distinct integers a,b,c and d between 0 and 10^6 such dat a^3 + b^3 = c^3 + d^3 eg 1729 = 9^3 + 10^3 = 1^3 + 12^3,but iam confused on how to do it,can u help me
brian 3 26-Jul-12 9:27am View    
it did not help..iam still confused??? plz help
brian 3 17-Jul-12 11:02am View    
@Eugen ok so what u are saying is that the s+=a will be equivalent to another for loop
brian 3 2-Jul-12 10:29am View    
sorry i meant to say..i have figured out how to this...but iam been trying to modify the program in such a way that when a user enters a specified number like 345 or 2398 in the main portion of the program,the function that u have given me above will just perform the specified operation of returning the largest number still using the same digits of the number supplied by the user.