1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
madreJ [45]
2 years ago
6

Problem 1: Triple + Double = So Much Trouble

Computers and Technology
1 answer:
damaskus [11]2 years ago
6 0

Answer:

Explanation:

The program code is written as:

#include <iostream>

using namespace std;

 

int main() {

    int num1,num2,flag=0,flag1=0,flag_val=0,temp1,temp2,f1,f2,f3,m1,m2;

    cout<<"Enter First Number ";

    cin>>num1;

    cout<<"Enter Second Number ";

    cin>>num2;

    temp1=num1;

    temp2=num2;

    while(temp1>0)

    {

    f1=temp1%10;

temp1=temp1/10;

    f2=temp1%10;

    if(f1!=f2)

       continue;

    temp1=temp1/10;

    f3=temp1%10;

       if(f1==f2 && f2==f3)

       {

       flag=1;

       flag_val=f1;

       }

    }

    while(temp2>0)

    {

    m1=temp2%10;

    temp2=temp2/10;

    m2=temp2%10;

    if (m1!=m2)

       continue;

    temp2=temp2/10;

    if(m1==m2 && flag==1 && flag_val==m1)

    {

       flag1=1;

       break;

    }

   

    }

    if (flag1==1)

    {

    cout<<"Both Number Are Triple + Double";

    }

    else

    {

    cout<<"Both number Are not Triple +Double";

    }

 

return 0;

}

OUTPUT:

Enter First Number = 3555761

Enter Second Number = 72559

Both numbers are Triple + DoublePress any key to continue .....

You might be interested in
What can you do in the Mouse section of the Devices and Printers menu?
ANTONII [103]
See for yourself.
On windows hit windowskey+r
Type in control and then hit enter
Then search device and printers

The answer is you can add an change settings (dpi, color) of the mouse
3 0
3 years ago
What does the coding phase involve?
Harman [31]

Answer:

I do believe it is D im not sure

5 0
2 years ago
Read 2 more answers
Computer crimes are a big concern since the creation of innovative technological advances; which is/are examples of computer cri
Natali [406]

Answer:

The answer is E: All of the above

Explanation:

All of the above scenarios are examples of serious computer crimes. They are crimes that exist in the offline world but take place online. Sexual predators, for instance, mostly take advantage of the anonymity provided by the internet. They often target dating sites and find suitable victims. Cyber bullying and Cyber stalking are just as harmful as any other computer crime. Industrial Espionage may also somehow fall into this category. Less frequently, criminals may steal documents and computer files or more often, illegally gain access to company’s trade secrets on computers and servers.

3 0
3 years ago
Read 2 more answers
Which of the following savings vehicles usually requires a high minimum balance
GuDViN [60]
A Savings Vehicle is an effective way to hold your savings. It could be a savings account. But some requires a high minimum balance such as Certificate of Deposit (CD). It is generally issued by commercial banks.  It is a time deposit too and restricts you from withdrawing funds.
7 0
3 years ago
(--BRAINLIEST--)<br>Explain the types of secondary memory on the basis of data access.​
Nina [5.8K]

There are two types of secondary memories.

  1. RAM
  2. ROM

RAM:

  • RAM stands for random access memory .
  • It is expandable.
  • we can do multiple things in it.
  • Its erasable.

ROM

  • ROM stands for read only memory.
  • It is permanent .
  • We can only read in it.
  • Its permanent hence not removable.
8 0
3 years ago
Read 2 more answers
Other questions:
  • What identifies available computers through the internet?
    14·1 answer
  • You are adding new wires in your building for some new offices. The building has a false ceiling that holds the lights and provi
    8·1 answer
  • my airpods just do not seem to connect if i try to pair them, reset them, they have this continuous green light, please help me
    12·1 answer
  • Television, radio, newspapers, magazines, the Internet, and other forms of communication are collectively referred to as thea. W
    15·1 answer
  • Linda wants to apply for a job in a company of her choice. Which information would her potential employers likely review in her
    10·2 answers
  • PLEASE HURRY!!!
    11·1 answer
  • If you need some one to talk to you can talk to me
    13·2 answers
  • Drag each tile to the correct box.
    15·2 answers
  • What is output by the following code?
    13·1 answer
  • Which actions represent parody?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!