#include<stdio.h>
#include<conio.h>
void main ()
{
int a=20;
float d=30.50;
char ch='A';
double dbl=58.9786;
long lng=7897710;
char nm [10]="taral";
clrscr ();
printf ("\nInteger value is %d",a);
printf ("\nFloat value is %.2f",d);
printf ("\nCharacter value is %c",ch);
printf ("\nDouble value is %.4lf",dbl);
printf ("\nLong value is %ld",lng);
printf ("\nString value is %s",nm);
getch ();
}
#include<conio.h>
void main ()
{
int a=20;
float d=30.50;
char ch='A';
double dbl=58.9786;
long lng=7897710;
char nm [10]="taral";
clrscr ();
printf ("\nInteger value is %d",a);
printf ("\nFloat value is %.2f",d);
printf ("\nCharacter value is %c",ch);
printf ("\nDouble value is %.4lf",dbl);
printf ("\nLong value is %ld",lng);
printf ("\nString value is %s",nm);
getch ();
}
No comments:
Post a Comment