User profile: dukhi x

User info
User name:dukhi x
History
Joined:
Number of posts:14
Latest posts:

sum function
take remainder in each iteration and save it in variable say remsum. now remsum=number%10 % is used...

Sharing Class information
if you are using values in functions of base class class you can pass the objects of derived class t...

sum function
get remainder by dividing the number by 10 in a loop and make sure that dont divide the same number ...

sqrt 4
[code]sqrt(sqrt(num));[/code] include math.h to use sqrt function.

HELP! Placing an extra copy of the 4th digit.
[code]int dnum(int x) { int n=0,t=x;int arr[10];int ret=0; for(n;t>0;n++) { arr[n]=t%10; t/=1...