Search:

Type: Posts; User: Syle

Search: Search took 0.01 seconds.

  1. Thread: Simple Question

    by Syle
    Replies
    13
    Views
    1,320

    Okay thanks a lot, I'm really new to c so I keep...

    Okay thanks a lot, I'm really new to c so I keep confusing everything, you really cleared things up for me austra.

    okay so this is the current code, the probem is that no matter what is typed in...
  2. Thread: Simple Question

    by Syle
    Replies
    13
    Views
    1,320

    Simple Question

    Hello I seem to be getting "syntax error before else" please help me.
    Also will this code work?


    int main()
    {
    int x;

    x = getchar();
  3. Replies
    20
    Views
    2,926

    Thanks it's up and working.

    Thanks it's up and working.
  4. Replies
    20
    Views
    2,926

    I'm not good enough at c to even understand what...

    I'm not good enough at c to even understand what you mean.


    #include <stdio.h>

    int main()
    {
    int XXX;
    int aa;
    int bb;
  5. Replies
    20
    Views
    2,926

    Okay i seem to have succeded in isolating each...

    Okay i seem to have succeded in isolating each digit even though I'm sure there's a simpler way than what i did, now i'm going to work on adding them up in the right way.
  6. Replies
    20
    Views
    2,926

    That is not the part I am having trouble with, I...

    That is not the part I am having trouble with, I am having trouble with finding a way to adress each digit.



    After this command how do I separate the digits of the entered number?
  7. Replies
    20
    Views
    2,926

    That is not what i want to check though, I want...

    That is not what i want to check though, I want to find out if the sum of all the even digits equalls the sum of all the odd digits.

    Quzah I have added my second question to the initial post.
  8. Replies
    20
    Views
    2,926

    Thank you all once again, if possible could you...

    Thank you all once again, if possible could you adress my second question?
  9. Replies
    20
    Views
    2,926

    #include int main() { int...

    #include <stdio.h>

    int main()
    {
    int this_is_a_number;

    printf( "Please enter a number: " );
    scanf( "%d", &this_is_a_number );

    if (this_is_a_number % 11 == 0) (printf ("yes"));
  10. Replies
    20
    Views
    2,926

    #include int main() { int...

    #include <stdio.h>

    int main()
    {
    int this_is_a_number;

    printf( "Please enter a number: " );
    scanf( "%d", &this_is_a_number );

    if (this_is_a_number / 11 = /* whole number/*)...
  11. Replies
    20
    Views
    2,926

    Simple division program help (added a new question)

    My initial problem has been solved, i have another question, is it possible for me to check whether each digit of an entered number is odd or even? for example 121 was entered' how do I apply (number...
Results 1 to 11 of 12