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...
Type: Posts; User: Syle
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...
Hello I seem to be getting "syntax error before else" please help me.
Also will this code work?
int main()
{
int x;
x = getchar();
Thanks it's up and working.
I'm not good enough at c to even understand what you mean.
#include <stdio.h>
int main()
{
int XXX;
int aa;
int bb;
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.
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?
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.
Thank you all once again, if possible could you adress my second question?
#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"));
#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/*)...
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...