Operations Application Name: FLastnameChartingI3Description…
Operations Application Name: FLastnameChartingI3Description: Write a C program that takes an integer input from the user and determines: If the number is greater than 0 or not greater than 0. If the number is even or odd. If the number is evenly divisible by 2 and 5 or not evenly divisibly by 2 and 5 (A number is evenly divisible by another if the division leaves no remainder.) Use the ternary conditional operator (? 🙂 and incorporate logical operators (&&, ||, !) where appropriate. . Include comments throughout. Requirements: Get input from user Use conditional operator with relational statements to do #1 and #2 above. Use conditional operator with relational statements and a logical operator to do # 3 above. The input/output should be similar to the following: Example 1 Input Enter an integer User enters 30 Output Greater than 0 Even Evenly divisible by 2 and 5 Example 2 Input Enter an Integer User enters -7 Output Not greater than 0 Odd Not evenly divisible by 2 and 5
Read Details