You are on page 1of 2

How you make software for add two numbers The steps are: 1.

- Turn on the laptop 2.- Search the program Dev-c + + 3.- Install and Open the program 4.- Click on Proyect 5.- Click on Console Application 6.- Click on En C 7.- Write the name of de proyect 8.- Click on Accept 10.- Delete all 11.- Write in the software the commands 12.- After write all Click on Compilar y Ejecutar and the software open up 13.- The display will show Sumo dos numeros and Press ENTER 14.- The display will show Introdusca un numero 15.- Enter a number and press ENTER 16.- The display will show Introdusca otro numero 17.- Enter a number and press ENTER 18.-The display will show the add of the numbers 19.- Keep your software in the PC 20.- Write the name of the software and click on add

# include <stdio.h> # include <conio.h> main () { float a,b,c; printf ("Sumo dos numeros"); scanf ("%c",&c); printf ("Indrodusca un Numero"); scanf ("%f",&a); printf ("Indrodusca Otro Numero"); scanf ("%f",&b); c=a+b; printf ("%8.2f",c); getch(); } These commands must be written correctly and this order for the program to perform the addition of two decimal numbers, modifications can be made as to the type of characters to receive, the number of decimal places to display or the text to show on screen all with a simple change in the instruction that is given to the command.

You might also like