/
Practice concepts with hands-on coding challenges.
Write a C program that determines if a student is eligible for an exam. Eligibility requires meeting specific criteria: the student must ha…
Write a C program that prompts the user to enter their age. The program should then determine and print whether the age falls within a spec…
Write a C program that reads an integer from the user and determines if it is positive, negative, or zero. The program should then print th…
Write a program that takes an integer as input and determines if it is positive, negative, or zero. The program should then print the resul…
Write a program that prompts the user to enter an integer. The program should then determine if the entered number is positive and display…
This exercise will guide you through comparing two integer numbers using all six standard comparison operators in C: equal to (==), not equ…
This exercise focuses on updating a wallet's balance using compound assignment operators in C. You will be given an initial balance and a t…
This exercise requires you to write a C program that takes two numbers as input from the user and performs all basic arithmetic operations:…
This exercise involves storing an individual's age, a product's price, and a grade's initial. You will declare variables for each of these…
Write a C program that prompts the user to enter their age, stores this age in a variable, and then displays the entered age back to the us…
This exercise requires you to implement a simple login and One-Time Password (OTP) verification system. The program should first ask for a…
Create a program that simulates a login process. The user should be prompted to enter either their phone number or email address. The progr…
Write a C program that takes a student's score as input and determines their grade category. The program should use `else if` statements to…
Write a C program that prompts the user to enter their age. Based on the entered age, the program should determine and print whether the pe…
Write a C program that takes a student's score as input and prints a message indicating whether they have passed or not. A score of 60 or h…
This exercise focuses on understanding and applying compound assignment operators in C. You will be given a number and will use operators l…
This exercise demonstrates how C handles division between integers and between a floating-point number and an integer. You will observe the…
This exercise will help you understand how different integer data types (like `int`, `short`, `long`) occupy memory. You will use the `size…
This exercise focuses on understanding how to declare variables, assign initial values to them, and then change those values later in the p…
Write a C program that simulates a simple transaction approval. The program should take the current account balance and the transaction amo…
This exercise focuses on using the logical NOT operator to invert a boolean value representing attendance status. You will read an attendan…
Write a C program that takes a person's age as input and prints their age group category. The categories are: 'Baby' for ages 0-1, 'Child'…
Write a C program that takes an integer as input from the user and determines whether the number is even or odd. The program should then pr…
This exercise demonstrates the fundamental difference between the assignment operator `=` and the equality comparison operator `==` in C. Y…
This exercise will help you understand the fundamental difference between the assignment operator (`=`) and the equality comparison operato…
This exercise focuses on understanding how counter variables change their values using the increment (++) and decrement (--) operators. You…
Write a C program that takes the coordinates of two points (x1, y1) and (x2, y2) as input. Calculate the Euclidean distance between these t…
This exercise focuses on understanding and applying the rules for declaring valid variable names in C. You will be asked to identify and cr…
Write a C program that determines if an applicant is eligible for a loan and calculates their maximum loan limit based on their annual inco…
A student's eligibility for the final exam is determined by their marks and attendance. To be eligible, a student must achieve a minimum of…
Write a C program that takes an annual salary as input and categorizes it into different tax slabs based on predefined income brackets. The…
Write a C program that takes a student's score as input and determines if they pass or fail. A score of 50 or above is considered a pass, o…
Write a C program that takes an integer as input and determines if it is an even number. An even number is an integer that is exactly divis…
You have a certain number of identical items to distribute among a group of students. Calculate how many items each student receives if the…
This exercise simulates a simple bank account transaction. You will be given an initial balance and a withdrawal amount. Your task is to ca…
Create a C program that takes a username as input and determines the type of user based on specific criteria. The program should output a d…
Write a C program that takes an integer input representing the day of the week (1 for Monday, 7 for Sunday). Based on this number, the prog…
Write a program that prompts the user to enter two numbers. The program should then compare these two numbers and print the larger one. If…
Write a C program that takes a person's age as input and determines if they are eligible to vote. A person must be 18 years or older to vot…
This exercise involves taking a total number of minutes as input and converting it into an equivalent number of hours and the remaining min…
Write a C program that calculates the final charge for a certificate. The program should take the base fee and the marks obtained as input.…
Create a simple access control system that grants entry only if a valid ID and a valid ticket are presented. The system should prompt the u…
Create a C program that presents a simple menu of options to the user. Based on the user's choice (a number), the program should display a…
Write a C program that takes an integer as input and determines if it is divisible by 3. The program should output whether the number is di…
Write a C program that prompts the user to enter a number. If the number is exactly 100, the program should print 'Full marks!'. Otherwise,…
This exercise requires you to calculate the average of three integer numbers. The result should be a decimal number, even if the sum of the…
Write a C program that takes three boolean inputs: `isHoliday`, `isWeekend`, and `isVacation`. Based on these flags, determine and print th…
Write a C program that takes an integer score as input (0-100) and prints the corresponding grade category: 'Excellent' for scores 90-100,…
Write a C program that takes a year as input from the user and determines if that year is before the year 2000. The program should print a…
Write a C program that takes an integer input from the user and determines if it is negative. The program should then print a message indic…
Create a simple C program that checks if a payment is overdue. The program will take the number of days since the payment was due as input.…
Calculate the total electricity bill for a consumer based on their monthly electricity consumption. The billing is done using a tiered slab…
Write a C program that reads a temperature value and checks if it exceeds a predefined safe threshold. The program should then print a mess…
Write a program that takes an integer as input and determines if it is perfectly divisible by 5. The program should output a message indica…
This exercise involves calculating an eligibility score based on multiple criteria. You will be given three integer inputs: `score1`, `scor…
This exercise requires you to map letter grades (A, B, C, D, F) to their corresponding grade points (4.0, 3.0, 2.0, 1.0, 0.0) and then calc…
Write a C program that calculates the final payable amount for a customer. The program should take the original price and two discount rate…
This exercise requires you to calculate a person's net financial position based on their income and expenses. You will read an income amoun…
Write a C program that takes two integer inputs from the user and prints a message indicating whether the first integer is greater than, le…
Write a C program that calculates the final price of an item after applying discounts. The program should take the original price and a dis…
Implement a C program that calculates the sales commission for a salesperson. The commission is determined by sales brackets: 0% for sales…
Write a C program that takes two integer inputs from the user and determines their relationship. The program should output whether the firs…
Write a C program that calculates the final price of an item after applying a discount. The discount is applied only if the initial total a…
This exercise requires you to calculate the due date for a payment and determine if a late fee should be applied. You will be given the pay…
Write a C program that takes a salary as input and calculates a bonus. If the salary is above a certain threshold (e.g., 50000), a fixed bo…
Write a C program that takes an integer input. If the input number is even, the program should compute and display half of that number. If…