Skip to content

Instantly share code, notes, and snippets.

@samir96
Created February 21, 2015 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samir96/e018781d0797f860f617 to your computer and use it in GitHub Desktop.
Save samir96/e018781d0797f860f617 to your computer and use it in GitHub Desktop.
Ejemplo como github
#include <iostream>
using namespace std;
int main(){
int contador=0, multi, num;
cout<<"Dime un numero y te dire la tabla de multiplicar de ese numero: ";
cin>>num;
while(contador<=9)
{
contador=contador+1;
multi=contador*num;
cout<<" "<<contador<<" X "<<num<<" = "<<multi<<" " <<endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment