Course Content
Detailed Content of Programming in C
0/1
Introduction
0/1
Structure of C program
0/1
Answers of ‘C’ Pointers Programs
0/1
About Lesson

Questions related to the Operators:

1. Write a program that acts as a simple calculator. It should take two numbers and an operator (+, -, *, /) as input and perform the corresponding operation.

2. Develop a program that converts temperatures between Celsius and Fahrenheit. Prompt the user for input and provide options for conversion.

3. Create a program that calculates the factorial of a given number. Use a loop to perform the calculation and display the result.

4. Write a program that checks if a given number is a palindrome. A palindrome is a number that remains the same when its digits are reversed.

5. Develop a program that checks whether a given year is a leap year or not. A leap year is divisible by 4, but not by 100 unless it is divisible by 400.

6.  Create a program that solves a quadratic equation (ax^2 + bx + c = 0) for given coefficients a, b, and c. Handle different cases (real roots, complex roots).

7. Create a program that takes two strings as input and concatenates them. Ensure that the resulting string doesn’t exceed a specified maximum length.

8. Design a basic banking system that allows users to deposit, withdraw, and check their balance. Use appropriate data types and operators for the transactions.

9.Write a program that takes a string as input and counts the frequency of each character. Display the results in alphabetical order.