Ads

Monday, May 11, 2020

URI Online Judge 1010 Simple Calculate Solution

URI Online Judge | 1010
Simple Calculate
Adapted by Neilor Tonin, URI  Brazil

Timelimit: 1


Problem Description:

Problem Number:1010
Problem Name: Simple Calculate
Author’s Name:Neilor Tonin, URI  Brazil
Timelimit: 1
Problem Category: BEGINNER.
Problem Source: https://www.urionlinejudge.com.br/judge/en/problems/view/1010
Solution in C


#include <stdio.h>
int main()
{
    int a,b,c,d;
    double e,f,g;
    scanf ("%d %d %lf", &a,&b,&e);
    scanf ("%d %d %lf", &c,&d,&f);
    g=(b*e)+(d*f);
    printf ("VALOR A PAGAR: R$ %.2lf\n",g);
    return 0;
}

0 comments:

Post a Comment