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

Level 2 > Lesson 7

message displaying : 'create a variable distance with correct type and value'.
by

1 Answer

iamabhishek
Sorry, there was some issue with the message. It has been corrected now.
The correct code for this lesson is:

#include <stdio.h>

int main() {

double doubly = 12345.123456;
long int longy = 12345678900;
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: %ld\n", shorty);
printf("This is ch: %c", ch);
return 0;

}

Login / Signup to Answer the Question.