erkant's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
Active Members
Active Posts:
108 (0.07 per day)
Joined:
26-October 10
Profile Views:
8,433
Last Active:
User is offline Apr 01 2014 02:30 AM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Playstation
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   erkant has not set their status

Posts I've Made

  1. In Topic: Recursive function for getting the sum of ascii values of digits

    Posted 20 Oct 2013

    This one returns zero.

    int ascii(int num)
    {
       if(num == 0)
           return 0;
       else
           return (char)num%10 + ascii(num/10);
    }
    
    
  2. In Topic: Recursive function for getting the sum of ascii values of digits

    Posted 20 Oct 2013

    I added a recursive function called recascii. What do you think? I guess I need to keep dividing the number with 10, and also do modulo 10 to get the value of each number, but then again I need to get their ASCII value.
  3. In Topic: Intiger expression expected error in bash script

    Posted 16 Mar 2013

    Thank you very much sepp2k for your helpful and informative reply!

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me