C program to understand how to display the various data type used in C - With Output

#include<stdio.h>
#include<conio.h>

void main()
{
     int num=10;
char ch='a';
float decimal=2.15;
printf("Integer value is %d",num);
printf("Character value is %c",ch);
printf("Float value is %f",decimal);

getch();

}

OUTPUT :
Integer value is 10
Character value is a
Float value is 2.15
Share on Google Plus

About Akash Manhas

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment