Skip to content

Instantly share code, notes, and snippets.

@oismaelash
Created March 10, 2018 03:26
Show Gist options
  • Save oismaelash/11ebd8bc0c3cf12ddfd16a97086a4713 to your computer and use it in GitHub Desktop.
Save oismaelash/11ebd8bc0c3cf12ddfd16a97086a4713 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
int main()
{
int n;
printf("Digite um numero: ");
scanf("%d", &n);
if((n % 2) == 0)
cout << "result 1\n";
else
cout << "result 2\n";
if((n % 3) == 0)
cout << "result 3\n";
else
cout << "result 4\n";
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment