logo

Crowdly

Let the following C program be:  #include <stdio.h> int main() { char id[...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Let the following C program be: 

#include <stdio.h>

int main() {

char id[10];

int hour;

float value, salary;

printf("Input the Employees ID(Max. 10 chars): ");

scanf("%s", &id);

printf("\nInput the working hrs: ");

scanf("%d", &hour);

printf("\nSalary amount/hr: ");

scanf("%f", &value);

salary = value * hour;

printf("\nEmployees ID = %s\nSalary = U$ %.2f\n", id,salary);

return 0;

}

What will be the output for the following inputs?

Employee ID: 115

The working hours: 8

Salary amount/hr: 500

 

More questions like this

Want instant access to all verified answers on moodle.medtech.tn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!