Alphabet

    0

    0

    The code has three lines. The first line declares a variable, c, of type char. The second line declares a loop that will run once for each letter of the alphabet. The third line outputs each letter in the loop.

    Library: skaf

    #include <iostream>
    using namespace std;
    
    int main() {
      char c;
      for (c = 'a'; c <= 'z'; c++) {
        cout << c << " ";
      }
      cout << endl;
    
      return 0;
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.