URI Online Judge | 1005
Average 1
Adapted by Neilor Tonin, URI Brazil
Timelimit: 1
Problem Description:
Problem Number:1005
Problem Name: Average 1
Author’s Name:Adapted by Neilor Tonin, URI Brazil
Timelimit: 1
Problem Category: BEGINNER.
Problem Source: https://www.urionlinejudge.com.br/judge/en/problems/view/1005
Solution in C
#include <stdio.h>
int main()
{
double A,B, MEDIA;
scanf ("%lf %lf", &A, &B);
MEDIA= ((A*3.5)+(B*7.5))/11;
printf ("MEDIA = %.5lf\n", MEDIA);
return 0;
}
0 comments:
Post a Comment