2
Can anyone tell me why the looping isn’t working properly?
It was to print the 0 to 10 times, but instead it is printing typed number * 11.
Follow the code:
#include <stdio.h>
int main(void)
{
int numero, cont=0;
printf("Digite um numero: ");
scanf("%d",&numero);
for (cont=0; cont<=10 ; cont++);
{
printf("%d x %d = %d \n",numero,cont,numero*cont);
}
return 0;
}
takes the
;
front of the for– Caique Romero