Search:

Type: Posts; User: Lissa

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    7,874

    I just modified the prototype and it worked fine...

    I just modified the prototype and it worked fine thanks yall^^
  2. Replies
    10
    Views
    7,874

    It prints all the words as not palindrome. I...

    It prints all the words as not palindrome. I added the printf u said, and for those who actually are: it prints the actual length and (lenght-1). :s:s
  3. Replies
    10
    Views
    7,874

    I know this is what i tried to do but it doesnt...

    I know this is what i tried to do but it doesnt seem to work:

    int isPalindrome (char *str){
    int length=strlen(str);
    int i;
    if (length<1)
    return 1;
    if (str[0] == str[length-1]){
    ...
  4. Replies
    10
    Views
    7,874

    int isPalindrome(char str[])

    Hi,

    I have the following recursive implementation of a function that checks if a word is a palindrome. But i actually need it with this prototype (recursive as well) :
    int isPalindrome(char...
  5. Replies
    5
    Views
    1,243

    printf("You have%d sisters and%d brothers\n",...

    printf("You have&#37;d sisters and%d brothers\n", sisters, brothers)
  6. Thread: need correction

    by Lissa
    Replies
    7
    Views
    1,633

    thank you master5001 it works now, tabstop found...

    thank you master5001 it works now, tabstop found out i just had to initialize sum_div correctly. thanks yall.
  7. Thread: need correction

    by Lissa
    Replies
    7
    Views
    1,633

    ohh thank youuuuuuuuuuu (k)

    ohh thank youuuuuuuuuuu (k)
  8. Thread: need correction

    by Lissa
    Replies
    7
    Views
    1,633

    i think the pblm is with the for loops. but how...

    i think the pblm is with the for loops. but how do i initialize that each time?
  9. Thread: need correction

    by Lissa
    Replies
    7
    Views
    1,633

    need correction

    Hi can anybody correct my code please?



    /*Write an algorithm that gets a positive entire number N then displays all perfect numbers less or
    equal to N.*/

    #include<stdio.h>
    int main...
  10. Replies
    31
    Views
    7,925

    um im actually done with this prog of displaying...

    um im actually done with this prog of displaying divisors. if you want i can show u the final piece of code that works well. now i got a problem with the second i sent u, i cant actually use arrays...
  11. Replies
    31
    Views
    7,925

    um master5001, i think you are using quite an...

    um master5001, i think you are using quite an advanced code, we havent reached arrays, yet, dont forget im just a beginner lol. i mean all what w've done so far is selective statements & loops...
  12. Replies
    3
    Views
    1,815

    i know how to write the code but it only displays...

    i know how to write the code but it only displays the first divisors which is 1, now i want it to display them all
  13. Replies
    3
    Views
    1,815

    display of divisors

    hey all i gotta write a programs that works like this:
    ---------------------------
    Enter number: 12
    Divisors: 1 2 3 4 6
    ---12 is Abundant
    ---------------------------

    Can anybody...
  14. Replies
    31
    Views
    7,925

    btw thanks to yall who bothered themselves to...

    btw thanks to yall who bothered themselves to help me, even though my pblm isnt solved yet^^.
  15. Replies
    31
    Views
    7,925

    wow.

    wow.
  16. Replies
    31
    Views
    7,925

    o my bad cnt has to change. i just incremented it...

    o my bad cnt has to change. i just incremented it like cnt++
  17. Replies
    31
    Views
    7,925

    except for those which cant be divided by 2...

    except for those which cant be divided by 2 actually
  18. Replies
    31
    Views
    7,925

    yess it works but it shows 2 as the only divisor...

    yess it works but it shows 2 as the only divisor for any number i enter
  19. Replies
    31
    Views
    7,925

    this is what i get bundant), 2(Abundant),...

    this is what i get
    bundant), 2(Abundant), 2(Abundant), 2(Abundant), 2(Abundant), 2(Abundant), 2(Abu
    ndant), 2(Abundant), 2(Abundant), 2(Abundant), 2(Abundant), 2(Abundant), 2(Abund
    ant),...
  20. Replies
    31
    Views
    7,925

    yes but we already have a piece of executable...

    yes but we already have a piece of executable file to which we have to stick
  21. Replies
    31
    Views
    7,925

    yes but we have a piece of executable file to...

    yes but we have a piece of executable file to which we have to stick
  22. Replies
    31
    Views
    7,925

    lol i know ur being veeery patient with me. im...

    lol i know ur being veeery patient with me. im sorry im just a beginner :d:d
    well i tried to compile ur code, it gave me a scary .exe, it's still running now btw while im writing u this. keeps...
  23. Replies
    31
    Views
    7,925

    that looks better. im using C free as a compiler...

    that looks better. im using C free as a compiler and it's saying sth about C++ and ANSI and stuff like that. plus we haven't rlly done the for loop yet, and im suppose to do it with the while one.
    ...
  24. Replies
    31
    Views
    7,925

    ok here's the final thing. but the display of...

    ok here's the final thing. but the display of divisors is wrong.

    #include <stdio.h>
    int main (void) {
    int n, cnt, sum_div;
    char ans;
    do{
    ...
  25. Replies
    31
    Views
    7,925

    *continue loop

    *continue loop
Results 1 to 25 of 28
Page 1 of 2 1 2