Skip to content

Instantly share code, notes, and snippets.

@iamsurya
Created February 26, 2017 11:42
Show Gist options
  • Save iamsurya/42074b913155e770285c04445d6058f4 to your computer and use it in GitHub Desktop.
Save iamsurya/42074b913155e770285c04445d6058f4 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 */
/* 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