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
ivanzaharov [21]
3 years ago
9

Write a demo main program that illustrates the work of BigInt(n) and prints the following sequence of big numbers 1, 12, 123, 12

34, …, 1234567890, one below the other.
Computers and Technology
1 answer:
Soloha48 [4]3 years ago
4 0

Answer:

The solution code is written in C++

  1. void BigInt(int n){
  2.    
  3.    int i, j;
  4.    
  5.    for(i = 1; i <= n; i++){
  6.  
  7.        for(j = 1; j <= i; j++){
  8.            
  9.            if(j < 10){
  10.                
  11.              cout<<j;                
  12.            }
  13.            else{
  14.              cout<<0;
  15.            }
  16.          
  17.        }
  18.        
  19.        cout<<"\n";
  20.        
  21.    }
  22. }
  23. int main()
  24. {
  25.    BigInt(10);
  26.    
  27.    return 0;
  28. }

Explanation:

Firstly, create a function BigInt that takes one input number, n.

Next, create a double layer for-loop (Line 5-21). The outer loop is to print one big number per iteration and the inner layer is keep printing the accumulated individual digit for a big number. To ensure the big number is printed one below the other, we print a new line in outer loop (Line 19).

In main program, we call the function to print the big number (Line 26).

You might be interested in
What does the third argument (3) refer to in the following formula: VLOOKUP(10005, A1:C6, 3, FALSE)
zzz [600]

Answer:

The answer is "number of the column containing the return value".

Explanation:

In Excel, the "VLOOKUP" method is used to perform the vertical search by looking for both the value during the user table and retrieving the number of the index number location in the same row. It is a built-in function, which is classified as a Lookup or Reference worksheet function, and the following function can be defined as follows:

  • In the 1st parameter, it is used to watch the value for the match.  
  • In the 2nd parameter, it is used to search the table.
  • In the 3rd parameter, it is used as the column number representing the return value.  
  • In the 4th parameter, it is used to return only if the same match is found.
5 0
3 years ago
When you’re in the Normal view, what are the visible panes?
zheka24 [161]

a

pleas give branlest

6 0
3 years ago
Read 2 more answers
Your boss bought a new printer with a USB 3.0 port, and it came with a USB 3.0 cable. Your boss asks you: Will the printer work
Greeley [361]

Answer:

Yes, is should work

Explanation:

USB is widely adopted and supports both forward and backward compatibility. The USB 3.0 printer should work with the USB 2.0 computer. However, having a connection like this, the printer will only be able to work at the speeds of the computer’s USB 2.0. By default, USB is built to allow transfer speeds improvement with upgrades from previous generations while still maintaining compatibility between devices that are supported by them.

4 0
3 years ago
The answer for this question?
Debora [2.8K]
It will flow from 2 to 1
6 0
3 years ago
Which type of cell references are locked and NOT automatically updated when it’s copied
dsp73

Hi I would have to say B sorry if this answer is sucky but I'm trying my best to help you :D

4 0
3 years ago
Other questions:
  • A(n) _________ is an attempt to learn or make use of information from the system that does not affect system resources.
    13·1 answer
  • When protecting a worksheet all cells are locked by default.?
    10·1 answer
  • In the ____________________ approach, the project is initiated by upper-level managers who issue policy, procedures and processe
    8·1 answer
  • How many times would the following loop iterate?
    15·1 answer
  • Ann needs to share information about a new hiring policy. She needs to communicate this information to more than one hundred emp
    15·2 answers
  • Write a program that takes a list of integers as input. The input begins with an integer indicating the number of integers that
    8·1 answer
  • Write a short essay on the importance of information and communication technology (ICT) in the AFN industry. Add suitable exampl
    11·1 answer
  • In photoshop what should you consider when determining a projects purpose and objectives?
    15·1 answer
  • You are purchasing a new printer. Which of the following is the most important requirement?
    5·1 answer
  • Alexis plans to stop trading once she lose 5% of her account balance, her account balance is $215.00. How much money is she will
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!