Tuesday, 4 December 2012

Prog for print int, long data types

#include<conio.h>
    #include<stdio.h>
    main()
    {
    int a;
    long b;
    clrscr();
    printf("Enter the int value: ");
    scanf("%d",&a);
    printf("The value is: %d",a);
    printf("\n Enter the Long int value: ");
    scanf("%ld",&b);
    printf("The value is: %ld",b);

    getch();
    }

No comments:

Post a Comment