Respuesta :

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).