subject

Me dicen cómo hacer este programa en lenguaje C?: "leer 10 numeros enteros y decir cuantos terminan en 7"

yo no se cómo hacerlo, por el momento se me ocurre esto, pero no se si esta bien encaminado:

#include <stdio. h>
#include <stdlib. h>
int main()
{
int i, num, cont=0;

for(i=0;i<=10;i++)
{
printf("ingrese un numero:");
scanf("%d", &num);
}
if(i%num==7)
cont=cont+1;
else
{
printf("ingrese un numero:");
}
printf("la cantidad de numeros que terminan en 7 es: %d", cont);

return 0;
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
What result from the passage of this amendment
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 24.06.2019 16:00
To fill (copy) a cell across or down, point to the of the cell and drag. top left corner top right corner bottom left corner bottom right corner
Answers: 3
question
Computers and Technology, 24.06.2019 20:00
Avirus enters a computer or network as code embedded in other software directly from another computer
Answers: 1
You know the right answer?
Me dicen cómo hacer este programa en lenguaje C?: "leer 10 numeros enteros y decir cuantos termina...
Questions
Questions on the website: 13722367