estudar03 – funções

#include <cstdlib>
#include <iostream>

using namespace std;

int mensagens(); //prototipo da função
int mostranumero(int n1, int n2);
int contas(int n1, int n2);
int contas2(int n1, int n2);

int main(int argc, char** argv) {

    cout << contas(10,23) << "\n";
     cout << contas2(40,23) << "\n";
    return 0;

int mensagens(){
    cout << "conteudo de uma funcao\n";
        return 0;

int mostranumero(int n1, int n2){
    cout << n1 << " " << n2 << "\n";
    return 0;

int contas(int n1, int n2){
    int total=0;
    return total;

int contas2(int n1, int n2){
    return (n1+n2);
Tags : ,

0 thoughts on “estudar03 – funções”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.