Windows 8.1
Programming Languages to Learn - its compulsory
1. Java
Java is a class-based, object-oriented programming language developed by Sun Microsystems in the 1990s. It's one of the most in-demand programming languages, a standard for enterprise software, web-based content, games and mobile apps, as well as the Android operating system. Java is designed to work across multiple software platforms, meaning a program written on Mac OS X, for example, could also run on Windows.
2. C Language
A general-purpose, imperative programming language developed in the early '70s, C is the oldest and most widely used language, providing the building blocks for other popular languages, such as C#, Java, JavaScript and Python. C is mostly used for implementing operating systems and embedded applications.
6. PHP
List of Open Source computer software programs
Slow Up by George Saoulidis. $8.99 from Smashwords.com
How Fast Can You Think? Limitless meets Black Mirror in this novel that pushes the limits of a couple's minds.
Supertuxkart: Solve challenges and compete with others.
Fibonacci series in C
Fibonacci series in c using for loop
/* Fibonacci Series c language */ #includeint main() { int n, first = 0, second = 1, next, c; printf("Enter the number of terms\n"); scanf("%d",&n); printf("First %d terms of Fibonacci series are :-\n",n); for ( c = 0 ; c < n ; c++ ) { if ( c <= 1 ) next = c; else { next = first + second; first = second; second = next; } printf("%d\n",next); } return 0; }
Armstrong number C program
C programming code
#includeint main() { int number, sum = 0, temp, remainder; printf("Enter an integer\n"); scanf("%d",&number); temp = number; while( temp != 0 ) { remainder = temp%10; sum = sum + remainder*remainder*remainder; temp = temp/10; } if ( number == sum ) printf("Entered number is an armstrong number.\n"); else printf("Entered number is not an armstrong number.\n"); return 0; }
C program for prime number
Prime number program in c language
#includeint main() { int n, i = 3, count, c; printf("Enter the number of prime numbers required\n"); scanf("%d",&n); if ( n >= 1 ) { printf("First %d prime numbers are :\n",n); printf("2\n"); } for ( count = 2 ; count <= n ; ) { for ( c = 2 ; c <= i - 1 ; c++ ) { if ( i%c == 0 ) break; } if ( c == i ) { printf("%d\n",i); count++; } i++; } return 0; }
C program to print patterns of numbers and stars
* *** ***** ******* *********
C programming code
#includeint main() { int row, c, n, temp; printf("Enter the number of rows in pyramid of stars you wish to see "); scanf("%d",&n); temp = n; for ( row = 1 ; row <= n ; row++ ) { for ( c = 1 ; c < temp ; c++ ) printf(" "); temp--; for ( c = 1 ; c <= 2*row - 1 ; c++ ) printf("*"); printf("\n"); } return 0; }
Palindrome Numbers
Palindrome number algorithm
2. Reverse it.
3. Compare it with the number entered by the user.
4. If both are same then print palindrome number
5. Else print not a palindrome number.
Palindrome number program c
#includeint main() { int n, reverse = 0, temp; printf("Enter a number to check if it is a palindrome or not\n"); scanf("%d",&n); temp = n; while( temp != 0 ) { reverse = reverse * 10; reverse = reverse + temp%10; temp = temp/10; } if ( n == reverse ) printf("%d is a palindrome number.\n", n); else printf("%d is not a palindrome number.\n", n); return 0; }
C program to reverse a number
C programming code
#includeint main() { int n, reverse = 0; printf("Enter a number to reverse\n"); scanf("%d",&n); while (n != 0) { reverse = reverse * 10; reverse = reverse + n%10; n = n/10; } printf("Reverse of entered number is = %d\n", reverse); return 0; }
C program to swap two numbers
In our c program to swap numbers we will use a temp variable to swap two numbers.
Swapping of two numbers in c
#includeint main() { int x, y, temp; printf("Enter the value of x and y\n"); scanf("%d%d", &x, &y); printf("Before Swapping\nx = %d\ny = %d\n",x,y); temp = x; x = y; y = temp; printf("After Swapping\nx = %d\ny = %d\n",x,y); return 0; }
C program to add n numbers
C programming code
#includeint main() { int n, sum = 0, c, value; printf("Enter the number of integers you want to add\n"); scanf("%d", &n); printf("Enter %d integers\n",n); for (c = 1; c <= n; c++) { scanf("%d",&value); sum = sum + value; } printf("Sum of entered integers = %d\n",sum); return 0; }
C program to find HCF and LCM
C programming code
#includeint main() { int a, b, x, y, t, gcd, lcm; printf("Enter two integers\n"); scanf("%d%d", &x, &y); a = x; b = y; while (b != 0) { t = b; b = a % b; a = t; } gcd = a; lcm = (x*y)/gcd; printf("Greatest common divisor of %d and %d = %d\n", x, y, gcd); printf("Least common multiple of %d and %d = %d\n", x, y, lcm); return 0; }
Factorial program in C
n! = n*(n-1)*(n-2)*(n-3)...3.2.1 and zero factorial is defined as one i.e. 0! = 1.
Factorial program in c using for loop
#includeint 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 %d = %d\n", n, fact); return 0; }
C program to check leap year
C programming code
#includeint main() { int year; printf("Enter a year to check if it is a leap year\n"); scanf("%d", &year); if ( year%400 == 0) printf("%d is a leap year.\n", year); else if ( year%100 == 0) printf("%d is not a leap year.\n", year); else if ( year%4 == 0 ) printf("%d is a leap year.\n", year); else printf("%d is not a leap year.\n", year); return 0; }
C program to perform Addition, Subtraction, Multiplication and Division
C programming code
#includeint main() { int first, second, add, subtract, multiply; float divide; printf("Enter two integers\n"); scanf("%d%d", &first, &second); add = first + second; subtract = first - second; multiply = first * second; divide = first / (float)second; //typecasting printf("Sum = %d\n",add); printf("Difference = %d\n",subtract); printf("Multiplication = %d\n",multiply); printf("Division = %.2f\n",divide); return 0; }
C program to check Odd or Even
C program to check odd or even using modulus operator
#includemain() { int n; printf("Enter an integer\n"); scanf("%d",&n); if ( n%2 == 0 ) printf("Even\n"); else printf("Odd\n"); return 0; }
C program to add two numbers
C programming code
#includeint main() { int a, b, c; printf("Enter two numbers to add\n"); scanf("%d%d",&a,&b); c = a + b; printf("Sum of entered numbers = %d\n",c); return 0; }
C programming examples
Browse the code from simple c program to complicated ones you are looking for, every one of them is provided with output.
C program download with executable files, so that you save on your computer and run programs without compiling the source code. All programs are made using c programming language and Codeblocks, most of these will work under Dev C++ compiler also.
The first program prints "Hello World" on screen.
- Hello World
- Print Integer
- Addition
- Odd or Even
- Add, Subtract, Multiply and Divide
- Leap year
- Factorial
- HCF and LCM
- Add n numbers
- Swapping
- Reverse number
- Palindrome number
- Print Pattern
- Prime numbers
- Find Armstrong number
- Fibonacci series
C program print integer
C programming code
#includeint main() { int a; printf("Enter an integer\n"); scanf("%d", &a); printf("Integer that you have entered is %d\n", a); return 0; }
C hello world program
Hello world in C language
//C hello world example #includeint main() { printf("Hello world\n"); return 0; }
Computer Network : Mesh Network Topology
Slow Up by George Saoulidis. $8.99 from Smashwords.com
How Fast Can You Think? Limitless meets Black Mirror in this novel that pushes the limits of a couple's minds.
Computer Network : Tree Network Topology
Celebrity Authors’ Secrets - The World’s Greatest Living Authors Reveal How They Sell Millions of Books by Stephanie Hale. $12.99 from Smashwords.com
Twelve of the world's greatest living authors reveal their tips for writing a book that sells over a million copies in Celebrity Authors' Secrets. A must-have guide - filled with publishing and book marketing info - for aspiring writers, authors, publishers, editors, writing coaches, creative writing tutors and anyone who loves books. Find out how to make your book stand out from the masses!
How to Create a Trade Mark, Protect it and Build your Brand by Liam M Birkett. $9.99 from Smashwords.com
You will learn how to devise your trade mark The essential steps to ensure that you can use the mark How to register and protect it How to exploit multiple types of trade marks The misconceptions regarding company names Errors relating to domain names How to use your branding to get free publicity How to add value to your brand A strategy to follow for expansion Practical examples of trade marks