Write a program in C language. Here is the complete assignment.
Through the standard user input stream, integers are entered. The last number is entered 0. After the user has entered the last number (zero), the program should print to the standard output stream:
- the number of positive numbers in decimal notation ending in 7.
I tried to do something, but all attempts fail, help to finish the code.
#include <conio.h> #include <stdio.h> int main() { int num = 0; int x = 0; printf("To quit, enter 0\n"); /*бесконечный цикл*/ while (1) { printf("Please, enter number: "); scanf_s("%d", &num); /*условие выхода из цикла*/ if (num == 0) { break; } if ((num % 10) &&(num=7)){
if ((num % 10) &&(num=7)){replace withif (num % 10=7){- Vladimir Klykovnum=7you are not the casenum == 7wanted to write? - LLENN