Construct a program that will display the multiplication table of 10 in c++ using array plss ASAP.. Thanksss

+1 vote
asked Feb 15, 2018 by Justin Apilado (390 points)

1 Answer

0 votes
answered Feb 16, 2018 by anonymous
#include <iostream>
using namespace std;
int main(){
  int arr[11];
  for(int i=1; i<=10; i++){
    arr[i] = i*10;
  }
  for(int i=1; i<=10; i++){
    cout<<10<<"*"<<i<<"="<<arr[i]<<endl;
  }
}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...