A C Program to learn the use of long integer and double datatype.


#include<stdio.h>
#include<conio.h>
void main()
{
long int p1;
double p2;

printf("Enter value of p1:");
scanf("%ld"&p1);
printf("Enter value of p2:");
scanf("%Ld",&p2);

printf("Population p1=%ld",p1);
printf("Population p2=%Ld",p2);
getch();
}





Comments