print series 10 to 1 and 1 to 10
print series 10 to 1 and 1 to 10

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...

Read more »
Apr 11, 2016


print Series -1 2 -3 4 -5 6 -7........
print Series -1 2 -3 4 -5 6 -7........

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...

Read more »
Apr 10, 2016


input from user and print factorial
input from user and print factorial

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 %...

Read more »
Apr 10, 2016


Print Table of input nob from user
Print Table of input nob from user

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...

Read more »
Apr 10, 2016


What is for loop
What is for loop

'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 ...

Read more »
Apr 10, 2016


What is do-while Loop
What is do-while Loop

'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...

Read more »
Apr 10, 2016


What is While loop
What is While loop

'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...

Read more »
Apr 10, 2016


What is Loop
What is Loop

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...

Read more »
Apr 10, 2016
 

Protected

Protected by Copyscape
 
Learn Programming © 2017. All Rights Reserved. Shared by WpCoderX
Top