Monday, 26 September 2011

26-09-2011 4th Division of Two Variables

/*This Program takes two values from user divides 1st by 2nd and then shows the result */
#include<stdio.h>
#include<conio.h>
main()
     
      {
    float val1;
    float val2;
    float div ;
    printf("\n Please enter the first value: ");
    scanf("%f",& val1);
    printf("\n Please enter the second value: ");
    scanf("%f",& val2) ;
    div = val1 / val2 ;
    printf(" \n The dividion of %f by %f is: %f",val1,val2,div) ;
    getche() ;
    return 0 ;
}

No comments:

Post a Comment