usage of %d, %f, %c in c programming
#include<stdio.h>
void main()
{
int a = 4;
float b = 4.5;
char c = 'p';
int d =50;
int e = 55+85;
printf("The value of a is %d \n ",a);
printf("The value of b is %f \n",b);
printf("The value of c is %c \n",c);
printf(" the sum of a and d is %d \n",a+d);
printf(" The value of e is %d \n",e);
return 0;
}
Comments
Post a Comment