bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_2 / tuition / apc_001.cpp

apc_001.cpp (343B)


      1 /* Tring to remember after a year. */
      2 
      3 #include <iostream>
      4 using namespace std;
      5 
      6 int main() {
      7     int num, count = 0;
      8     cout << "Enter numbers one by one (enter -1 to stop):" << endl;
      9 
     10     cin >> num;
     11     while (num != -1) {
     12         count++;
     13         cin >> num;
     14     }
     15 
     16     cout << "Total numbers entered: " << count << endl;
     17     return 0;
     18 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror