-
-
Save amankharwal/5a568b78b532a3551a7b89ac4f0d11fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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