fork download
  1. /**********************************************************************************
  2.  * PROGRAMMED BY : DAISY CONTRERAS
  3.  * CLASS : CSC 5
  4.  * SECTION : MW 2:20-5:30PM
  5.  * ASSIGNMENT : CHAPTER 2 QUESTION #1
  6.  *********************************************************************************/
  7.  
  8. #include <iostream>
  9. using namespace std;
  10.  
  11. /*********************************************************************************
  12.   *
  13.   * STORE THE SUM OF TWO NUMBERS
  14.   * _______________________________________________________________________________
  15.   * This program stores the sum of two integers as input. This sum will be stored
  16.   * in a variable called total.
  17.   *
  18.   * INPUT
  19.   * number1 : This is the integer 62.
  20.   * number2: This is the integer 99
  21.   * total: The total of number1 and number2.
  22.   *
  23.   * ******************************************************************************/
  24.  
  25. int main()
  26. {
  27. int number1;
  28. number1 = 62; //INPUT - The first number is an integer that is 62
  29. int number2;
  30. number2 = 99; //INPUT - The second number is an integer that is 99
  31. int total;
  32. total = number1 + number2; //INPUT - The sum of the two integers
  33. return 0;
  34. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty