Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  division
Language: C/C++
Code:
#include <stdio.h>
#include <conio.h>

{
int a=5, b=2, x,y,z,w;
float c=5.0, d=2.0;
   x=a/b;
     printf("%d/%d=%d\n",a,b,x);
   y=a/d;
   printf("%d/%d=%d\n",a,d,y);
   z=c/b;
   printf("%f/%d=%d\n",c,b,z);
   w=c/d;
   printf("%f/%f=%f\n",c,d,w);
     getch();
     return 0;
}
          
Comments: