문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자. 문서의 원본을 보거나 복사할 수 있습니다. ==개요== ;<nowiki>Day 1: Data Types</nowiki> * https://www.hackerrank.com/challenges/30-data-types/problem {{HR30 헤더}} {{HR30 0-9}} |} ==C== <syntaxhighlight lang='c'> int i2; double d2; char s2[100]; scanf("%d", &i2); scanf("%lf", &d2); scanf(" %[^\n]", s2); printf("%d\n", i+i2); printf("%.1f\n", d+d2); printf("%s%s\n", s, s2); </syntaxhighlight> ==C++== <syntaxhighlight lang='cpp'> int i2; double d2; string s2; cin >> i2; cin >> d2; getchar(); getline(cin, s2); cout << i + i2 << endl; cout.precision(1); cout << fixed << d + d2 << endl; cout << s + s2 << endl; </syntaxhighlight> ==Java== {{참고|HR30 Day 1: Data Types/Java}} <Source lang='java'> int i2 = scan.nextInt(); double d2 = scan.nextDouble(); scan.nextLine(); String s2 = scan.nextLine(); System.out.println(i+i2); System.out.println(d+d2); System.out.println(s+s2); </syntaxhighlight> ==node.js== <syntaxhighlight lang='javascript'> var i2 = parseInt(readLine()); var d2 = parseFloat(readLine()); var s2 = readLine(); console.log(i+i2); console.log((d+d2).toFixed(1)); console.log(s+s2); </syntaxhighlight> ==PHP== <syntaxhighlight lang='php'> $i2 = intval(fgets($handle)); $d2 = floatval(fgets($handle)); $s2 = fgets($handle); echo $i+$i2 . "\n"; echo number_format($d+$d2, 1) . "\n"; echo $s.$s2; </syntaxhighlight> ==Python== {{참고|HR30 Day 1: Data Types/Python}} <syntaxhighlight lang='python'> i2 = int(input()) d2 = float(input()) s2 = input() print( i + i2 ) print( d + d2 ) print( s + s2 ) </syntaxhighlight> 이 문서에서 사용한 틀: 틀:Ed (원본 보기) 틀:HR30 0-9 (원본 보기) 틀:HR30 헤더 (원본 보기) 틀:언어아이콘 (원본 보기) 틀:언어이미지 (원본 보기) 틀:참고 (원본 보기) HR30 Day 1: Data Types 문서로 돌아갑니다.