Module 1: Fundamentals of C
Problem 1: Hello C Language
Code:
Output:
Problem 2: Cube of a Number
Code:
Output:
Problem 3: Area of the Circle
Code:
Output:
Problem 4: Simple Interest
Code:
Output:
Problem 5: Arithmetic Operators
Code:
Output:
Problem 6: Find the Sum and Average of Three Numbers
Code:
Output:
Problem 7: Swap Two Numbers without Temporary Variable
Code:
Output:
Problem 8: Swap Two Numbers using Temporary Variable
Code:
Output:
Problem 9: Find Greatest of Three Numbers
Code:
Output:
Problem 10: Demonstrate Bitwise AND & OR
Code:
Output:
Problem 11: Implicit and Explicit Typecasting
Code:
Output:
Problem 12: Ternary Operators
Code:
Output:
Problem 13: WAP to accept three numbers from users and display
the greatest of three using the conditional operator.
Code:
Output: