Skip to content

Instantly share code, notes, and snippets.

@iamsurya
Created February 26, 2017 11:39
Show Gist options
  • Save iamsurya/b214f8fc98f233c655f48717b08e63d0 to your computer and use it in GitHub Desktop.
Save iamsurya/b214f8fc98f233c655f48717b08e63d0 to your computer and use it in GitHub Desktop.
/* Author Sonik Sharma 26/2/2017
Program to ask the user for a number
then print its table from 1 to 10
*/
/* Include files */
#include<iostream> /* includes cout cin */
#include<conio.h> /* conio = console io. includes getch = get character from keyboard */
/* */
int main()
{
int a; /* Create a variable to store user input */
cin>>a /* Ask user for input */
do
{
a+=a;
cout<<a;
}
while(a<=a*10)
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment