C Language
#include<stdio.h> #include<conio.h> void main( ) { int a; float b; char c; clrscr(); printf ("Enter integer value: "); scanf ("%d", &a); printf ("Enter float value: "); scanf ("%f", &b); printf ("Enter character value: "); scant ("%c", &c); printf ("Integer: %d\n", a); printf ("Float: %f \n", b); printf ("Character: %c", c); getch(); } /*OUTPUT*/ Enter integer value: 4 Enter float value: 2.5 Enter character value: Z Integer: 4 Float: 2.500000 Character: Z