Pages

Wednesday, October 20, 2010

QOUTIENT C PROGRAMMING

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

int main(void)
{
    int l,a;
    float quo;

    clrscr();
    printf("\n\tType the value of l:^");
    scanf("%d",&l);
    printf("\n\tType the value of a:^");
    scanf("%d",&a);

    quo =l/a;

    if(l%a==0)
    {
        printf("\n\tThe value of the first real number is %d",l);
        printf("\n\tThe value of the second real number is %d",a);
        printf("\n\n\tThe of the two positive numbers is %.0f",quo);
    }
    getch();
}

No comments:

Post a Comment