Determine equality of 2 numbers

C Programming Examples – Comparing 2 numbers – Simple If Else if Else problem

Problem: Create a program that will ask a user to enter 2 numbers. Determine if the first number is greater than, less than, or equal to the second number.
VN:F [1.9.11_1134]
Rating: 5.0/5 (2 votes cast)

Example Output 1

Enter 1st num: 2.5
Enter 2nd num: 2.4

The 1st number is greater than 2nd number.

Contribute Articles

VN:F [1.9.11_1134]
Rating: 5.0/5 (1 vote cast)

Join Us

Hello again my fellow Information Technology Enthusiasts!

We have been thinking of allowing users to submit their own articles. In the end we find it very useful and helpful for our users if we have articles about different topics coming from different people.

If you believe that you can share anything related to Information Technology, why not apply as a contributor?

conTEXT

HTML Tutorial 1 – Context Editor

So you want to create a website but don't know how to start. Creating websites is actually very easy. And if you really want to know how, surely you'll find it very interesting. There are only 2 things your'e going to need:
  1. A Text Editor
  2. Web Browser
VN:F [1.9.11_1134]
Rating: 5.0/5 (1 vote cast)

Enter Email to Feedburner

How to use RSS

Did you found a website where you want to stay updated with? ITechSociety perhaps? You always want to be the first to know if there is something new in this website but don't want to visit all the time only to find out that there is really nothing new? If yes, RSS is the best option!
VN:F [1.9.11_1134]
Rating: 0.0/5 (0 votes cast)

Posted in How Tos | Tagged , , | 1 Comment

Fix Your Facebook Thumbnail

VN:F [1.9.11_1134]
Rating: 5.0/5 (1 vote cast)

Is your facebook thumbnail looking like this?!

Trouble with facebook thumbnail?

Figrue 1.0 - Ugly FB Thumbnail

If yes you might want to change your facebook thumbnail. If you don’t know how,here are simple yet useful steps on fixing your facebook thumbnail.
First, hover your profile picture, and then click on the little pencil on the top right side of your facebook profile picture.
Click “Edit Thumbnail”

Posted in Facebook | Tagged , | Leave a comment
Figure 1 The scanf in action

C Programming Tutorial 4 – Accepting Input

In the previous lessons we have learned what are variables, how to assign values to variables, etc. In the program we created in lesson 3, we calculated for the area for a rectangle by assigning a default value to width and height. This is not a very useful program for users because they cannot enter any value. The program would be very much more useful if it would allow then to input dimensions.
VN:F [1.9.11_1134]
Rating: 0.0/5 (0 votes cast)

Getting Modulus

C Programming Tutorial 3 – Arithmetic Operators

Just like any other programming languages, C/C#/C++ supports a full range of arithmetic operators that gives you the ability to manipulate numeric values used in a program. These operators works just like as they work in algebra.
VN:F [1.9.11_1134]
Rating: 5.0/5 (1 vote cast)

figure1

C Programming Examples – Fibonacci Series Using Loop Statement

Problem: Create a program that displays the Fibonacci sequence of a user input. More about Fibonacci here.
VN:F [1.9.11_1134]
Rating: 5.0/5 (1 vote cast)

Sample Output:

Enter a Number: 7

Fibonacci Series: 1 1 2 3 5 8 13

Factorial Flow Chart

C Programming Examples – Factorial using Loop Statement

Problem: Write a program that will compute for n! (N Factorial).
VN:F [1.9.11_1134]
Rating: 5.0/5 (1 vote cast)

Sample Output:

Enter Number: 6
1 2 3 4 5 6

The factorial value is 720

Solution: