Created
February 21, 2015 05:32
-
-
Save samir96/e018781d0797f860f617 to your computer and use it in GitHub Desktop.
Ejemplo como github
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
#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