Skip to content

Instantly share code, notes, and snippets.

@gabrielcesar
Created October 26, 2016 03:03
Show Gist options
  • Save gabrielcesar/efb23958b18ba4bd44cd82f45b23fa93 to your computer and use it in GitHub Desktop.
Save gabrielcesar/efb23958b18ba4bd44cd82f45b23fa93 to your computer and use it in GitHub Desktop.
#include <stdio.h>
//
int main ( void )
{
int x;
int y;
int a;
int c = 0;
printf ( "Número de múltiplos: " );
scanf ( "%d", &x );
printf ( "Valor a ser multiplicado: " );
scanf ( "%d", &y );
a = x * y;
while ( c < a )
{
c += y;
printf ( "%d\n", c );
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment