0% found this document useful (0 votes)
2 views13 pages

C Programming Basics and Exercises

The document outlines a module on the fundamentals of the C programming language, presenting a series of problems for practice. Each problem includes a brief description and a placeholder for code and output. The problems cover various basic programming concepts such as arithmetic operations, area calculations, and number manipulation.

Uploaded by

yashrajk2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views13 pages

C Programming Basics and Exercises

The document outlines a module on the fundamentals of the C programming language, presenting a series of problems for practice. Each problem includes a brief description and a placeholder for code and output. The problems cover various basic programming concepts such as arithmetic operations, area calculations, and number manipulation.

Uploaded by

yashrajk2007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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:

You might also like