1. 26.
    +1
    #include <iostream>

    using namespace std;

    int main()
    {
    int counter = 0;
    int firstDigit = 0;
    int secDigit = 0;
    int thirdDigit = 0;
    int tempNum = 0;
    for(int i = 100; i < 1000; i++)
    {
    tempNum = i;

    firstDigit = tempNum % 10;
    tempNum = tempNum / 10;
    secDigit = tempNum % 10;
    tempNum = tempNum / 10;
    thirdDigit = tempNum;

    if(firstDigit

    7)
    counter++;
    if(secDigit

    7)
    counter++;
    if(thirdDigit == 7)
    counter++;
    }

    cout << firstDigit << " " << " " << secDigit << " " << thirdDigit << endl;
    cout << counter << endl;
    }

    cevap: 280.
    soruyu yanlış anlamışım.
    ···
   tümünü göster