Ads

Saturday, May 9, 2020

URI Online Judge 1006 Average 2 Solution

URI Online Judge | 1006
Average 2
Adapted by Neilor Tonin, URI  Brazil
Timelimit: 1


Problem Description:

Problem Number:1006
Problem Name: Average 2
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/1006
Solution in C


#include <stdio.h>
int main()
{
    double A,B,C, MEDIA;
    scanf ("%lf %lf %lf", &A, &B, &C);
    MEDIA= ((A*2)+(B*3)+(C*5))/10;
    printf ("MEDIA = %.1lf\n", MEDIA);
    return 0;
}






0 comments:

Post a Comment