// C for coding, C code demo
// you can copy and paste the code into https://www.onlinegdb.com/online_c_compiler

#include <stdio.h>

int main()
{
    
    int a = 1;
    int b = 11;
    int cc = 0;
    
    
    while (cc < b)
     {
        cc = cc + a;
        
        if (cc != 2) 
            printf("\n Hey world! Integer value is %d\n" , cc);
            else 
            printf("\n I was told to show something different when cc is 2");
            
     }
    
}


/* you can copy and paste the C# code into https://www.onlinegdb.com/online_csharp_compiler */


using System;

class HelloWorld {

  static void Main() {
    int a = 1;
    int b = 11;
    int cc = 0;
    
    
    while (cc < b)
     {
        cc = cc + a;
        
        if (cc != 2) 
        {
            Console.Write("Hey world! Integer value is ");
            Console.WriteLine(cc);
        }
            else 
            Console.WriteLine("I was told to show something different when cc is 2");
            
     }
    }
}


/* you can copy and paste the java code into https://www.onlinegdb.com/online_java_compiler */

public class Main
{
    public static void main(String[] args) {
    
    int a = 1;
    int b = 11;
    int cc = 0;
        
    while (cc < b)
     {
        cc = cc + a;
        
        if (cc != 2) 
        {
            System.out.print("Hey world! Integer value is ");
            System.out.println(cc);
        }
            else 
            System.out.println("\n I was told to show something different when cc is 2");          
     }
    }
}
