about | help | code help+videos | done | prefs |
Given two strings p and q, assume the original statement is "If p, then q." Return the specified type of related statement ("converse", "inverse", or "contrapositive"). For example, if p is "a cat" and q is "a feline", then the original statement is "If a cat, then a feline." If relatedStatement is "contrapositive", then return "If not a feline, then not a cat." conditionalStatements('a cat', 'a feline', 'contrapositive') → 'If not a feline, then not a cat.' conditionalStatements('raining', 'wet', 'converse') → 'If wet, then raining.' conditionalStatements('a snake', 'legless', 'inverse') → 'If not a snake, then not legless.' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 175 Post-solution available
Copyright Nick Parlante 2017 - privacy