TABLE IN C++

#include <iostream>
#include <conio.h>
using namespace std;

int main()
{
 //program to display the table of given Number
 int sum,counter,n;
 cout<<"Enter the Number of Table you want to display = ";
 cin>>n;
 counter = 1;
 in:
  sum = n*counter;
  cout<<n<<"*"<<counter<<" = "<<sum<<endl;
  counter=counter+1;
  if(counter<=20)
  goto in;
     getch();
    return 0;
}

Comments

Popular posts from this blog

JavaFX UI /UX Dashboard

JavaFX code for responsive layout