Friday, October 26, 2018

Uri 1008 Solution in C | Salary

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/

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


}

//Happy_coding

No comments:

Post a Comment