Jump to content
Fórum Script Brasil
  • 0

código executa muito rápido em C++


gabos
 Share

Question

 1 #include<iostream>
 2  using std::cout;
 3  using std::cin;
 4  using namespace std;
 5  
 6  int main () {
 7   int menina;
 8   int menino;
 9  double nenem;
10  double
11  if(nenem==menina and nenem<=menino) {
12      if (nenem!= menina and nenem!=menino)
13      cout << "x indefinido";
14  cout << "x é menino\n";
15  } else {
16  if ( nenem==menina and nenem==menino)
17      cout << "x são gemeos\n";
18  } else {
19      if (nenem==menina and nenem==menina)
20   cout << "x são duas meninas\n";
21   return 0;
22  }

Qual o problema no meu código e porquê executa rápido demais??

Edited by gabos
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Forum Statistics

    • Total Topics
      149.8k
    • Total Posts
      646.6k
×
×
  • Create New...