it gives me the warning sign
"multi-character character constant"
Type: Posts; User: readytogo
it gives me the warning sign
"multi-character character constant"
...well....I don't know it still not working
I've tried....it doesnt work
i have a question here...
How do I compare two characters?
i.e.
char rep1, rep2;
scanf("%c %c", &rep1, &rep2);
Sorry to say this guys, I haven't learned array yet, and we are not allow to use it now until later. My teacher said so =( So is there any other ways?
Here's my code:
#include <stdio.h>
int main(){
Yes, I know by checking the input...But how can I do that?
Do I need to check each number one by one like...
21012 - > "2" "1" "0" "1" "2" ?
If so...I have no idea how to do that.
Hey guys,
I'm doing a programing that will convert a number in one base to another base output.
My program works fine now. It can convert any positive real number in one base to another base.
...
Hey guys, I've got the program to compile correctly, but every time I execute, it gives me the line says "Floating point exception"? Maybe my logic isn't correct or I code somewhere wrong?
...
The question is to input a non-negative real number:
and approximate the closest fraction.
so i.e.
if
Nonnegative real number: 0.751
Closest approximation = 3/4
http://i52.tinypic.com/16c26vp.jpg
#include <stdio.h>
int main() {
double p, pre, cur;
int i, j, d;