Skip to content

Instantly share code, notes, and snippets.

@AlejandroVelasco
Created April 19, 2024 20:43
Show Gist options
  • Select an option

  • Save AlejandroVelasco/b5c50a9ecf7385ef563ce3fedbf758ca to your computer and use it in GitHub Desktop.

Select an option

Save AlejandroVelasco/b5c50a9ecf7385ef563ce3fedbf758ca to your computer and use it in GitHub Desktop.
#include <iostream>
int main() {
int n1 = 2;
int n2 = 4;
int n3 = 0;
if (n1 == n2) {
n3 = 1;
} else {
n3 = 0;
}
std::cout << "n3: " << n3 << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment