mirror of
https://github.com/ossu/computer-science.git
synced 2024-10-01 01:26:01 -04:00
Intro to CS MIT - Finish Problem set 01
This commit is contained in:
parent
8771653735
commit
b504a25d24
@ -8,7 +8,9 @@
|
||||
|
||||
*/
|
||||
|
||||
var answers = 0;
|
||||
var answers = 0;
|
||||
var birthDate = '';
|
||||
var lastName = '';
|
||||
|
||||
process.stdin.resume();
|
||||
|
||||
@ -17,9 +19,6 @@ process.stdin.setEncoding( 'utf8' );
|
||||
|
||||
process.stdin.on( 'data', function( input ) {
|
||||
|
||||
var birthDate = '';
|
||||
var lastName = '';
|
||||
|
||||
if ( answers === 0 ) {
|
||||
|
||||
birthDate = input;
|
||||
@ -32,11 +31,9 @@ process.stdin.on( 'data', function( input ) {
|
||||
lastName = input;
|
||||
|
||||
console.log(
|
||||
'================\n',
|
||||
'Birth date:',
|
||||
birthDate, '\n',
|
||||
'Last Name:',
|
||||
lastName, '\n',
|
||||
'================\n<< Informations >>\n' +
|
||||
'Birth date: ' + birthDate + '\n' +
|
||||
'Last Name: ' + lastName + '\n' +
|
||||
'Bye!'
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user