i (16) · ?d=cae=0+ , •)5*. /7 ; 7/ *(41!g /7 39g $9 •h 4"*. 39 –c 0&( ! / - %:, 9...
TRANSCRIPT
����� ��I(16) ���!�
������� ���
��� ���������
?D=CAE=0+�,• )5*.�/7��; 7/ *(41!G�/7�39G $9
• H����4"*.�39– C��<@F>0&(��!��/��-��%:,�9
• ��/12G��1� /��-2/#G?D=CAE=1���
#include <stdio.h>
//168�"�1��<��'9?D=CBint main(void) {double input, lower, upper, center;int i;
printf("Input a number (> 1) :");scanf("%lf", &input);
lower = 1;upper = input;for(i = 0; i < 30; i++) {center = (lower + upper) / 2.0; printf("%f¥n", center);if(center * center < input)lower = center;
}else {upper = center;
}}return 0;
}
C++#include <iostream>
int main() {std::cout << "Hello World!!¥n";for(int i = 0; i < 5; i++)std::cout << i << '¥n';
return 0;}
C�� �� �1C�����#��$�&+)%'*�,/(.-0(� �" ������$�1����������!C�����
http://www.officeuchida.com/pcp/cppintro1.html
>c++ -o hello hello.cpp>./helloHello World!!01234
Javapublic class forsample {
public static void main(String[] args) {int sum = 0;for (int i = 1; i <= 5; i++) {
sum += i;}System.out.println(sum);
}}
�� ; ����� ������ {}�������for���������������������
http://blueplace.sakura.ne.jp/basic/JavaSampleProgram.html
>javac forsample.java>java forsample15
Pythonprint("Hello, World!")for x in range(3,5):
print(x)list = ["Hello","World","Friends"]for x in list:
print(x)
������������ ����� ���� ���"#!������; ���$&�'&%��������� �����
https://algorithm.joho.info/programming/python/sample-code-py/
>python hello.pyHello, World!34HelloWorldFriends
PHP<?echo "Hello world!¥n";for($i = 0; $i <= 5; $i++) {
echo $i, "¥n";}
���������� ������������������ $ � ��
https://www.php.net/manual/ja/index.php
>php test.phpHello world!012345
DI:GEJ:��/*!+
• ��0B=;J/9J<@KH&6
– Mac : Xcode– Windows : Visual Studio!'74��O9J<@KH��1A?@,��O
• web�0��8��&6
– https://paiza.io/ja .-
• � DI:GEJ:/��&6
– AtCoder L��(#N���%!"4M
– TechFUL L��1$785)+32&MQ��;JCFK>�P ,4��8���
http://triple-four.com
���*(%+5.6������� �7
���!/51$)2&6�������7
,&35)69����7
%0(%�� #�����6�"#%0(%����8��Register-'4�����7
����
• ������������
�������
��������
������� �������������� ����
�������
�����������
��#;��#��� �#��)"�(.63-412=�+���"�!��89���$�*'#;��$��#���&�:
���9<:
57/70#%���)&�,
��������(1)
�� �
��� ��(2)
���KRaYvZ68������ ��������
����������
��������
����������������
��� ��������
��������
������������������
• ������� �����
��(�����"�
• � �&)�#�����• +�� ��(� �"�
• !� %���)*�� �&$'����&"�
–�����#�����