# Author: ayesha

#### Maximum of three number program in C

This tutorial will talk about how to write a C program to find the maximum of Three number in C Programming Language. Variables used in this Program: num1,num2,num3 : Integers C Program to find Maximum of three number #include<stdio.h> int main() { int num1,num2,num3; scanf(“%d”,&num1); scanf(“%d”,&num2); scanf(“%d”,&cnum3; if(num1>num2&&num1>num3) { printf(“%d is the maximum number”,num1); } […]

#### Leap year program in C

In this tutorial, we are going to learn about Leap year Program implementation in C programming Language. What is A Leap Year? Mathematically, If a Year is divided by 4 and the remainder is zero then the year is a leap year. C Program to implement Leap year concept #include<stdio.h> int main() { int year; […]

#### Uppercase or Lowercase program in C

In this article, we are going to implement a C Program to find if a given character is in Uppercase Letter or Lowercase Letter. So here we go: Variable used in this program: c: a character Uppercase or Lowercase program in C #include<stdio.h> int main() { char c; scanf(“%c”,&c);// scanning the alphabet if(c>=’a’&&c<=’z’)//comparision { printf(“%c […]

#### Divisible by 3 and 7 program in C

#include<stdio.h> int main() { int n; printf(“Enter the Balloon’s number:\n”); scanf(“%d”,&n); if(n%3==0&&n%7==0) printf(“YES.”); else printf(“NO.”); return 0; }

#### Even or Odd number program in C

In this C program tutorial, we will discuss how to write Even or Odd number program in C Programming Language. If you are a beginner to C programming language this program will help you to understand the implementation of ODD AND EVEN Numbers. You must be aware that “Odd numbers are those that have a remainder […]

#### Largest of two numbers program in C

#include<stdio.h> int main() { int a,b; printf(“Enter the first number\n”); scanf(“%d”,&a); printf(“Enter the second number\n”); scanf(“%d”,&b); if(a>b) printf(“1st is greater”); else printf(“2nd is greater”); return 0; }

#### Calculate your age program in C

Calculate your age program in C Programming is an interesting problem to solve. Do you want to know anybody’s age just by entering the “year of birth” of that person? Check out the code after giving it a try by yourself. Calculate your age program in C #include<stdio.h> int main() { int current_year,b,d; printf(“Enter Year […]

#### Months using switch program in C

To know the “Month” program in C Programming language will display the corresponding month for a numeric number. Example: 4 corresponds to April. And if the Month doesn’t correspond to the provided number, then it will return an Invalid month. Month Program In C Programming Language #include < stdio.h >   int main() {     int […]

#### Calculator Using Switch in C: Project in C Programming Language

Do you want to play around C Programming Language? Here is a working code for implementing Calculator in C Programming Language. Calculator Project In C Programming Language #include<stdio.h> int main() { int a,b; char c; scanf(“%d %c %d”,&a,&c,&b); switch(c) { case ‘+’: printf(“The sum is %d”,a+b); break; case ‘-‘: printf(“The difference is %d”,a-b); break; case […]