ONLINE COMPILERS
LIBRARY
MANUAL PAGES & DOCS
CONTACT
Latest Users' Questions
User Submitted Source Code!
Description:
123
Language: C/C++
Code:
123
Language: C/C++
Code:
#include <stdio.h>
#include <math.h>
int main()
{
float a,b,c,d;
float r;
printf("Vvedite a:");
scanf("%f", &a);
printf("Vvedite b:");
scanf("%f", &b);
printf("Vvedite c:");
scanf("%f", &c);
printf("Vvedite d:");
scanf("%f", &d);
r=((a*b)/(c*d))-((a*b-c)/(c*d));
printf("Result = %.3fn",r);
getch();
}
#include <math.h>
int main()
{
float a,b,c,d;
float r;
printf("Vvedite a:");
scanf("%f", &a);
printf("Vvedite b:");
scanf("%f", &b);
printf("Vvedite c:");
scanf("%f", &c);
printf("Vvedite d:");
scanf("%f", &d);
r=((a*b)/(c*d))-((a*b-c)/(c*d));
printf("Result = %.3fn",r);
getch();
}
Comments: