Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

LEVEL 2 > LESSON 7 Help

#include <stdio.h>

int main() {

double doubly = 12345.123456;
long int longy = 12345678900;
short shorty = 1234;
unsigned char ch = 'Z';

printf("This is doubly: %lf\\n", doubly);
printf("This is longy: %ld\\n", longy);
printf("This is shorty: %d\\n", shorty);
printf("This is ch: %c", ch);
return 0;

}
by

1 Answer

sam5epi0l
Try this code:

#include <stdio.h>

int main() {

double doubly = 12345.123456;
long int longy = 12345678900L;
short int shorty = 1234;
unsigned char ch = 'Z';

printf("This is doubly: %lf\n", doubly);
printf("This is longy: %ld\n", longy);
printf("This is shorty: %hd\n", shorty);
printf("This is ch: %c", ch);
return 0;

}

Login / Signup to Answer the Question.