c programming examples with output

Simple Calculator Program in C

Here, we will create a simple calculator program in C which will perform basic arithmetic operations like addition, subtraction, multiplication, division, and remainder depending on the input from the user. Users will have the choice to choose the operation. If the user chooses the wrong operation then he/she will get an error message. Prerequisites for […]

Simple Calculator Program in C Read More »

Leap Year Program in C

Here we will write the leap year program in C language. We can use if-else, nested if-else, or switch case statement for this problem. A year is called leap year if the year is divisible by four, except for the years which are divisible by 100 but not divisible by 400. Therefore, the year 2000

Leap Year Program in C Read More »

Even Odd Program in C

In this post, you will learn even odd program in the C language. We will write different C programs to check or find even or odd numbers. Even Number Program in C First, you should know how to write a C program to find even numbers. If the number is divisible by 2 then it

Even Odd Program in C Read More »