C Coding Questions Set01
C Coding Questions Set01
2) Write a C program to input two integers and display their sum, difference, product,
and quotient.
3) Write a C program to swap the values of two integer variables without using a third
variable.
4) Write a C program to calculate the area of a rectangle. Take the length and width as
input and display the area.
7) Write a C program to check if a given integer is odd or even. Display the result
accordingly.
10) Write a C program that takes an integer number of days as input and converts it into
years, weeks, and days. Assume a year has 365 days and a week has 7 days.
11) Write a C program to check if a number is divisible by both 5 and 3 using the
arithmetic and logical operators.