PHP

11/19/2023

C, C++, JAVA, C# [002] Output

C


#include <stdio.h>


int main() {

  printf("Hello World!\nI am learning C.\nAnd it is awesome!");

  return 0;

}


C++


#include <iostream>

using namespace std;


int main() {

  cout << "Hello World!" << endl;

  cout << "I am learning C++";

  return 0;

}

-------------------------------------------------------------------------------


#include <iostream>

int main() {

  std::cout << "Hello World!" << endl;

  std::cout << "I am learning C++";

  return 0;

}


JAVA


System.out.println("Hello World!");

System.out.println("I am learning Java.");

System.out.println(358);


C#

Console.WriteLine("Hello World!");

Console.WriteLine("I am Learning C#");

Console.WriteLine("It is awesome!");

Console.WriteLine(3 + 3);



No comments:

Post a Comment

Featured Post

이성(합리적 판단)과 감성(감정적 판단)을 나타내는 형용사

이성(합리적 판단)과 감성(감정적 판단)을 나타내는 형용사는 영어 문장에서 의견, 판단, 주장 등을 표현할 때 자주 사용됩니다. 특히 `that + 주어 + (should)` 구조와 함께 쓰여서 의무나 필요성, 기대를 나타낼 수 있습니다. ### 1....

Popular Posts