MGM’s College of engineering and Technology, Kamothe, Navi Mumbai
COMPUTER ENGINEERING
FE (Sem- I) AY: 2024-2025
Course Code: VSEC102 Course Name: C Programming
Assignment 1
Date of Submission: 14/10/2024
1. Write an algorithm and flowchart to swap two numbers without using third
variable.
2. Write an algorithm and C program to find the area and circumference of circle.
3. Using ternary operator, write a program to decide whether a person is eligible to
vote or not.
4. Write a program to accept the temperature in Celsius and to convert and display it
in Fahrenheit.
5. Write a program to find all the roots of a quadratic equation using if-else ladder.
6. Write a program to enter any character. If the entered character is in lower case
then convert it into upper case and if it is a lower case character then convert it into
upper case.
7. Write a program that accepts a number from 1 to 20. Print whether number is even
or odd using switch case construct.
8. Write a program to check whether the given number is palindrome or not.
9. Write a program to print the below format up to the given number of lines.
i. 1
12
123
……..
ii. 1
12
123
……….
10. Write a program to find the number of digits before and after the decimal point in
a floating point number.