I got my first program to work but it has a little bug in it.
What Could be the problem? would i need a few more printfs?
Here the code:
Code:
#include <stdio.h>
int main()
{
int a, b, c, d;
printf( "Please enter five numbers between 1 and 10\n" );
scanf( "%d", &a,&b,&c,&d); /* sets the numbers u inputed */
if ( a== 1 || b == 1 || c == 1 || d == 1 || a == 2 || b == 2 || c == 2 || d == 2 || a == 3 || b == 3 || c == 3 || d == 3 || a == 4 || b == 4 || c == 4 || d == 4 || a == 5 || b == 5 || c == 5 || d == 5 ) {
printf( "Wow your as smart as me\n" );
}
else if (a == 6 || b == 6 || c == 6 || d ==6 || a == 7 || b == 7 || c == 7 || d == 7 || a == 8 || b == 8 || c == 8 || d == 8 || a == 9 || b == 9 || c == 9 || d == 9 || a == 10 || b == 10 || c == 10 || d == 10 ) {
printf( "WOW You smarter than me\n" );
}
else {
printf( "OMFG u thought of %d, %d, %d, %d\n", a, b, c, d );
}
system("pause");
return 0;
}