-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
nabrian37 wrote:
> I am new to C Programming, and doing a pratice exerises on GCD. The
> program works with no problems, but I would like to use two seperate
> entries to input the first and second numbers,
> printf("Enter the first number to find its GCD: ", n1);
scanf_s("%d",&n1);
> printf("Enter the second number to find its GCD: ", n2);
scanf_s("%d",&n2);
> printf("The GCD of %d and %d \n is %d\n",n1,n2,gcd(n1,n2));
You don't need n1 at the end of the printf statements.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHQLYO4dyr7s6PRYgRAkkXAJ90FWKE+anpwZA5t88kveAD+lKP4wCfSR62
lAe+KQ8txrevLPTGNDIGILY=
=AIdW
-----END PGP SIGNATURE-----