Created
February 26, 2017 11:39
-
-
Save iamsurya/b214f8fc98f233c655f48717b08e63d0 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
/* 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