Skip to content

Instantly share code, notes, and snippets.

@mreduar
Created September 30, 2016 19:30
Show Gist options
  • Save mreduar/c8e69c71db8fecd7f699065f70453cbc to your computer and use it in GitHub Desktop.
Save mreduar/c8e69c71db8fecd7f699065f70453cbc to your computer and use it in GitHub Desktop.
#include <stdio.h>
int num, i;
char respuesta;
int main()
{
do{
printf("Ingrese el numero para genrar la tabla\n");
scanf("%d",&num);
for (i = 1; i <= 10; ++i)
{
printf("%d * %d = %d \n",num,i,num*i);
}
printf("Desea generar otra tabla de multiplicacion?.\n S para si N para no.\n");
scanf("%c",&respuesta);
}while(respuesta='s');
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment