Study of variables and printf function.

#include <stdio.h>

int main(void)
{
/* Variable declaration statements */

int i;
float f;
char ch;

/* Assign values to these variables */

i = 500;
f = 35.987;
ch = 'A';

/* Display variable values */

printf("\nValue of integer variable is %d", i);
printf("\nValue of float variable is %f", f);
printf("\nValue of character variable is %c", ch);

return 0;
}

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin