fork download
  1. //Castulo Jason Quintero CSC5 Chapter 2, P. 83, #14
  2. //
  3. /**************************************************************
  4.  *
  5.  * LIST PERSONAL INFORMATION
  6.  * ____________________________________________________________
  7.  * This program will list of personal information each on a
  8.  * separate line while using only one cout statement.
  9.  * ____________________________________________________________
  10.  * INPUT
  11.  * name: Marco Hernandez
  12.  * address: 1257 E 24th St, Brooklyn, NY 11210
  13.  * cellNumber: (718)285-7314
  14.  * collegeMajor: Computer Engineering
  15.  * OUTPUT
  16.  * The person information listed on separate lines.
  17.  *
  18.  **************************************************************/
  19. #include <iostream>
  20. #include <iomanip>
  21. using namespace std;
  22. int main ()
  23. {
  24. //Input Personal Information
  25. string name ="Marco Hernandez";
  26. string address ="1257 E 24th St, Brooklyn, NY 11210";
  27. string cellNumber ="(718)285-7314";
  28. string collegeMajor ="Computer Engineering";
  29. //
  30. //Output result
  31. cout << name << endl << address << endl <<
  32. cellNumber << endl << collegeMajor << endl;
  33. return 0;
  34. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
Marco Hernandez
1257 E 24th St, Brooklyn, NY 11210
(718)285-7314
Computer Engineering