Ads

Monday, May 11, 2020

URI Online Judge 1008 Salary Solution

URI Online Judge | 1008
Salary
Adapted by Neilor Tonin, URI  Brazil

Timelimit: 1


Problem Description:

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


#include<stdio.h>
int main()
{
    int n,d;

    float h;

    double a;

    scanf("%d %d %f",&n,&d,&h);

    a=d*h;

    printf("NUMBER = %d\n",n);

    printf("SALARY = U$ %0.2lf\n",a);

    return 0;
}

0 comments:

Post a Comment