Addition 2 number in C Language
Sample Program : Addition of two numbers Consider the program, which performs addition on two numbers and displays the result. The program is following : This program when executed will product the following output : 100 106.10 The first two lines of the program are comment lines. It is a good practice to use comment lines in the beginning to give information such as name of the program, author, date etc. Comment characters are also used in other lines to indicate line numbers. The words number and amount are variable names that are used to store numeric data. The numeric data may be either in integer form or in real form. In C, all variables should be declared to tell the compiler what the variable names are and what type of data they hold. The variables must be declared before they are used. In lines 5 and 6, the declarations : int number; float amount; tell the compiler that number is an integer( int ) and amount is a floating( float...