C Program to Check Leap Year

C Programming Tutorial

   A year is a leap year if − It is evenly divisible by 100 If it is divisible by 100, then it should also be divisible by 400 Except this, all other years evenly divisible by 4 are leap years. —————————————————————— #include <stdio.h> int main() { int year; printf(“Enter a year: “); scanf(“%d”,&year); if(year%4 … Read more

C program for Snake game

C Programming Tutorial

Snake Game is mini project  in a C language. It is console application without graphic library that’s why it is more interesting. This game is perfect without any error and better user interface. It is complied in code block using c language. Here goes a source code you can copy and compiled it in code block. … Read more

C Program to find prime number

C Programming Tutorial

What is prime number? Definition of prime number A number is considered as prime number when it satisfies the below conditions.It should be whole number It should be greater than 1 It should have only 2 factors. They are, 1 and the number itself. For Example: 2, 3, 5, 7, 11, 13, 17, 19, 23, … Read more

The do-while Loop in C

the do while loop in c

There is a minor difference between the working of while and do while loops. This difference is the place where the condition is tested. The while tests the condition before executing any of the statements within the while loop. As against this, the do-while tests the condition after having executed the statements within the loop. … Read more

The continue Statement in C

C Programming Tutorial

The keyword continue allows us to take up the control to the beginning of the loop, bypassing the statements inside the loop, which have not yet been executed. When continue is encountered inside any loop, control automatically passes to the beginning of the loop. A continue is usually associated with an if. Let’s consider the following … Read more

Putty : Connect Linux Server from Windows Computer

Putty : Connect Linux Server from Windows Computer Here is video to show how to connect Linux server from Window   Putty is free tool to connect Linux server. You can down putty from below link: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html  

The break Statement in C

break statement in c

While writing C program, We often come across situations where we want to jump out of a loop instantly, without waiting to get back to the conditional test. The keyword break allows us to do this. When break is encountered inside any loop, control automatically passes to the first statement after the loop. A break … Read more

The Odd Loop in C

the odd loop in

Uses of Odd Loop In real life programming one comes across a situation when it is not known beforehand how many times the statements in the loop are to be executed. This situation can be programmed as shown below: /* Execution of a loop an unknown number of times */ main( ) { char another … Read more