Monday, February 23

Write a program to accept values of two numbers and print their division in C language

    #include<stdio.h>
    #include<conio.h>
    main()
    {
        float a,b,c;
        clrscr();
        printf("Enter number 1: ");
        scanf("%f",&a);
        printf("Enter number 2: ");
        scanf("%f",&b);
        c=a/b;
        printf("Division is : %f",c);
        getch();
    }

No comments:

Post a Comment