This article needs improvement. You can help improve this article. You can also write similar articles and help the community.

6 Comments on “Hello world!

    1. class Test { public static void main(String[] args) { // for loop for (int i = 1; i <= 10; ++i) { // if the value of i is 5 the loop terminates if (i == 5) { break; } System.out.println(i); } } }

    2. class Test { public static void main(String[] args) { // for loop for (int i = 1; i <= 10; ++i) { // if the value of i is 5 the loop terminates if (i == 5) { break; } System.out.println(i); } } }wfdsf

  1. /* Function lower(c) using conditional expression */
    
    #include<stdio.h>
    
    int lower(int c);
    
    int main(void) {
      int c;
    
      while ((c = getchar()) != EOF) {
        putchar(lower(c));
      }
    }
    
    int lower(int c) {
      return c >= 'A' && c <= 'Z' ? c + 'a' - 'A' : c;
    }