Sharda LMS

Discover → Learn → Practice → Assess → Record

cpp

C++: count with a loop

Print numbers 0 1 2 using a for-loop and printf (classroom C++ subset). Do not use files or system calls.

Student code never runs against the production database or filesystem. A classroom interpreter grades it.

Public examples

  • Input:

    Output: 012

Login as a student to save attempts and scores.

Output will appear here.