Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created August 2, 2021 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/5a568b78b532a3551a7b89ac4f0d11fd to your computer and use it in GitHub Desktop.
Save amankharwal/5a568b78b532a3551a7b89ac4f0d11fd to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main(){
int product;
int counter=1;
int number;
cout<<"Enter the number to print the table: ";
cin>>number;
in:
product = number*counter;
cout<<number<<" x "<<counter<<" = "<<product<<endl;
counter = counter + 1;
if (counter <= 10){
goto in;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment