Files
C-Bootcamp-Tutorial/A10/3.+Employee+Salary+Calculator.c
2026-09-24 14:39:54 +02:00

19 lines
364 B
C

//Made by Vlad. Budnitski.
//AlphaTech - Programming Course.
#include <stdio.h>
int main()
{
float salary;
int totalHours;
printf("Enter your Salary Per Hour: ");
scanf("%f", &salary);
printf("Enter the number of hours you worked in the last month: ");
scanf("%d", &totalHours);
printf("Your expected salary should be: %.2f\n", salary * totalHours);
}