C Program to Find the Largest Number Among Three Numbers

Using if Statement #include <stdio.h> int main() { double n1, n2, n3; printf(“Enter three different numbers: “); scanf(“%lf %lf %lf”, &n1, &n2, &n3); if (n1 >= n2 && n1 >= n3) printf(“%.2f is the largest number.”, n1); if (n2 >= n1 && n2 >= n3) printf(“%.2f is the largest number.”, n2); if (n3 >= n1 … Read more

C Program to Display Fibonacci Sequence

fibonacci-sequence

The Fibonacci sequence is a sequence where the next term is the sum of the previous two terms. The first two terms of the Fibonacci sequence are 0 followed by 1. The Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21 Visit this page to learn about the Fibonacci sequence. Fibonacci Series up … Read more

C Program to Find Factorial of a Number

Program to find Factorial of a Number using Recursion

The factorial of a positive number n is given by: factorial of n (n!) = 1 * 2 * 3 * 4….n The factorial of a negative number doesn’t exist. And, the factorial of 0 is 1. Factorial of a Number   #include <stdio.h>   int main() {   int n, i;   unsigned long … Read more

install Bluefish on centos

Bluefish is a free and open source software that text editor with a variety of tools for programming and development of dynamic websites. It supports HTML, XHTML, CSS, XML, PHP, C, C++, JavaScript, Java, Ada, D, SQL, etc. It can be also used via integration with GNOME or as a standalone application. This tutorial covers … Read more