Created
February 26, 2017 11:42
-
-
Save iamsurya/42074b913155e770285c04445d6058f4 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 */ | |
/* Create a loop that counts from 1 to 10 */ | |
/* Multiply a by loop counter */ | |
/* cout result */ | |
/* End loop */ | |
/* getch */ | |
/* End program */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment