Noise pollution is a significant environmental issue, particularly in industrial settings. The constant hum of machinery, the clanging of metal, and the roar of engines contribute to a cacophony that can have serious health implications for workers and nearby residents. Addressing noise pollution in industries is not only a matter of regulatory compliance but also a crucial step in ensuring the well-being of employees and the community. Understanding Noise Pollution in Industries Industrial noise pollution stems from various sources such as heavy machinery, generators, compressors, and transportation vehicles. Prolonged exposure to high levels of noise can lead to hearing loss, stress, sleep disturbances, and cardiovascular problems. Beyond health impacts, noise pollution can also reduce productivity, increase error rates, and contribute to workplace accidents. Regulatory Framework Many countries have established regulations and standards to limit industrial noise. Organizations like t
C program to find the greatest among three integers:
#include <stdio.h>
int main() {
int num1, num2, num3;
printf("Enter three integers: ");
scanf("%d %d %d", &num1, &num2, &num3);
if(num1 > num2 && num1 > num3) {
printf("%d is the greatest.", num1);
}
else if(num2 > num1 && num2 > num3) {
printf("%d is the greatest.", num2);
}
else {
printf("%d is the greatest.", num3);
}
return 0;
}
In this program, we first declare three integer variables num1, num2, and num3. We then prompt the user to enter three integers using printf() and read those integers using scanf().
Next, we use a series of if and else if statements to compare the three numbers and determine which is the greatest. We use the logical operators && and || to combine conditions where necessary.
Finally, we print the result using printf().
Sample output :
The output of the program will depend on the values of the three integers entered by the user. Here's an example of what the output might look like for different inputs:
Example 1:
Enter three integers: 10 20 30
30 is the greatest.
Example 2:
Enter three integers: 20 10 20
20 is the greatest.
Example 3
Enter three integers: 5 5 5
5 is the greatest.
In Example 1, the greatest number is 30, so the program outputs "30 is the greatest."
In Example 2, the greatest number is 20, so the program outputs "20 is the greatest."
In Example 3, all three numbers are equal, so the program outputs "5 is the greatest."