luchhozito Posted March 14, 2009 at 06:33 PM Report Share #250702 Posted March 14, 2009 at 06:33 PM #include <stdio.h> main () { int i,j; j=1; i=1; printf ("Tabuadas de 1 a 10:\n"); while (j<=10) { while (i<=10) { printf("%2d x %2d = %2d \n",j,i,i * j); i++; } printf("****************\n"); j++; } } mas isto dá a tuabuada do 1 e depois mostra apenas os ************************ ou seja 1 x 1 = 1 ... 1 x 10=10 ************************** ************************** ************************** ... ************************** (ate 10) Link to comment Share on other sites More sharing options...
luchhozito Posted March 14, 2009 at 07:17 PM Author Report Share #250716 Posted March 14, 2009 at 07:17 PM faltava o i=1 , antes de : while (i<=10) RESOLVIDO Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now