Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string teste(int no=0)
- {
- if ((no%2)==0)
- {
- return "par";
- }
- else {
- return "impar";
- }
- }
- int main()
- {
- int num=0;
- cout << "Informe um numero inteiro" << endl;
- cin >> num;
- cout << teste(num);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment