
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <stdio.h> void main() { int n,i; n=10; i=1; while(n>=1&&i <= 10) { printf("%d \t %d\n",n,i); n--; i++; } } If you face any problem so contact me Thank you&nb...
A blog about programming languages and this Blog specially Create for learning languages like C language,C++ Language, Data Structure and Algorithm.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <stdio.h> void main() { int n,i; n=10; i=1; while(n>=1&&i <= 10) { printf("%d \t %d\n",n,i); n--; i++; } } If you face any problem so contact me Thank you&nb...
1 2 3 4 5 6 7 8 9 10 11 12 13 #include <stdio.h> int main() { int s,i; for(i=1,s=1;i<=10;i++) { s=s*(-1); printf("%d\t",i*s); } return 0; } If you face any problem so contact me Thank youCo...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include <stdio.h> int main() { int c, n, fact = 1; printf("Enter a number to calculate it's factorial\n"); scanf("%d", &n); for (c = 1; c <= n; c++) fact = fact * c; printf("Factorial of %...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include<stdio.h> int main() { int n,i=1; printf("Table of ="); scanf("%d",&n); while(i<10) { i++; printf("%d*%d=%d\n",n,i,n*i); } } If you face any pro...
'for' loop:- for loop executed one or more statements for a specified number of times.This loop is also called Counter controlled loop. it is the most flexible loop.That is why ,it is ...
'do-while' Loop:- do while is an iterative in c language. THis loop executes one or more statements while the given condition is true. In this loop,the c...
'while' Loop:- while loop is the simplest loop of c language. This loop executes one or more statements while the given condition remains true. it is useful when the number of itera...
Loops:- A type of control structure that repeats a statements or set of statements is known as Looping structure.it is also known as iterative or repetitive Structure. In sequential structure, all statements are executed once. On the other hand ,Co...