0% found this document useful (0 votes)
7 views1 page

Lab 1

The document contains instructions for 6 programming exercises: printing ASCII values, converting between Fahrenheit and Celsius temperatures, computing quotients and remainders, checking if a triangle's angles sum to 180 degrees, checking if 3 points are collinear, and determining if a point lies inside, on, or outside a circle given its center and radius.

Uploaded by

ADARSH DINKAR
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)
7 views1 page

Lab 1

The document contains instructions for 6 programming exercises: printing ASCII values, converting between Fahrenheit and Celsius temperatures, computing quotients and remainders, checking if a triangle's angles sum to 180 degrees, checking if 3 points are collinear, and determining if a point lies inside, on, or outside a circle given its center and radius.

Uploaded by

ADARSH DINKAR
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
You are on page 1/ 1

Maulana Azad National Institute of Technology, Bhopal

Dept. of Computer Science and Engineering

Lab 1

1. Write a C program to print ASCII value of a character.

2. Write a C program to convert temperature from Fahrenheit to Celsius and vice versa.

3. Write a C Program to Compute Quotient and Remainder.

4. Write a program to check whether a triangle is valid or not, when the three angles of the
triangle are entered through the keyboard. A triangle is valid if the sum of all the three
angles is equal to 180 degrees.

5. Given three points (x1, y1), (x2, y2) and (x3, y3), write a program to check if all the three
points fall on one straight line.

6. Given the coordinates (x, y) of a centre of a circle and its radius, write a program which
will determine whether a point lies inside the circle, on the circle or outside the circle. (Hint:
Use sqrt( ) and pow( ) functions).

You might also like