1008 - Salary


Problem Link

A Solution in c


#include<stdio.h>
int main()
{
    int a, b;
    float c, SALARY;
    scanf("%d %d %f", &a, &b, &c);
    SALARY = b * c;
    printf("NUMBER = %d\nSALARY = U$ %.2f\n", a, SALARY);
    return 0;

}






No comments

Theme images by Jason Morrow. Powered by Blogger.