1005 - Average 1
Problem Link
A Solution in c
#include<stdio.h>
int main()
{
float A, B, MEDIA;
scanf("%f %f", &A, &B);
MEDIA =(A *3.5)+(B*7.5)/(3.5+7.5);
printf("MEDIA = %.5f\n", MEDIA);
return 0;
}
![]() |
Lakshman |
My name is Lakshman Gope. I'm a problem solver and a blogger. Now I am a student at Daffodil International University Department of Software Engineering. I like to learn algorithms and write clean code in an efficient and optimized way. I've been working on c, c++ and Java for a year and a half continuously.
No comments