In this tutorial, We will see how to use switch case in C programming language. By the using of switch statement execute one code block among many alternatives. The syntax of the switch case is: switch (expression) { case 1: // statements break; case 2: // statements...
In this tutorial, We will see the difference between while & do-while in C programming language. while loop The syntax of the while loop is: while (TestExpression) { // the body of the loop } How while loop works? The while loop evaluates the TestExpression inside the parentheses (). If TestExpression is true, statements inside...
In this tutorial, We will see how to print numbers using while loop in C programming language. Program to print numbers #include<stdio.h> #include<conio.h> void main() { int a=1; clrscr(); while(a<=5) { printf("%d\n", a); a++; } getch(); } Output 1 2 3 4 5 In this...
In this tutorial, We will see how to print numbers using for loop in C programming language. Program to print numbers #include<stdio.h> #include<conio.h> void main() { int a; clrscr(); for(a=1; a<=10; a++) { printf("%d\n", a); } getch(); } Output 1 2 3 4 5 6...
In this tutorial, We will see how to find largest among three numbers using nested if else in C programming language. Program to find largest among three numbers #include<stdio.h> #include<conio.h> void main() { int a, b, c; clrscr(); printf("Enter three numbers "); scanf("%d%d%d", &a,&b,&c); if(a>b)...
In this tutorial, We will see how to use if and if else statement in C programming language. C if Statement The syntax of the if statement in C programming is: if (test expression) { // code } How if statement works? The if statement evaluates the test expression...
In this tutorial, We will add two integers using command line arguments in C programming language. Program to Add Two Integers #include<stdio.h> #include<conio.h> void main() { int a, b, c; clrscr(); printf("Enter the value of a = "); scanf("%d", &a); printf("Enter the value of b...
In this tutorial, We will add, subtract, multiply and divide in C programming language. Program to Add Two Integers #include<stdio.h> #include<conio.h> void main() { int a = 20; int b = 10; int c = a + b; printf("%d + %d = %d", a, b,...
In this tutorial, We will see how to print Hello World in C programming language. #include<stdio.h> void main() { printf("Hello World"); //Displays the string } Output Hello World How does this program work? To use printf() in our program, we need to include stdio.h header file using the #include <stdio.h> statement....
In this tutorial, We will see how to use scrolling option in jQuery Datatable. Files used in this tutorial: 1- connection.php (database connection file) 2- index.php (fetch data from database and initialise datatable) Below are the step by step process of how to use scrolling...
Join 20,000+ subscriber