U E D R , A S I H C RSS

새싹교실/2012/강력반



1.

  • :
  • : , ,

2.1. 1


2.1.1.

O
O
O
O

2.1.2.

1.visual studio
기 - win32 ( )
- cpp .c

2.각
+-*/ %
=
++, -- a++ , ++a
==, !=, >, < 등등
!, &&, ||
~, &, |, ^, <<, >>

3.
int - 4
float - 4
char - 1 - ()
double - 8
bool - 0과 1 T/F - 0

4.
printf -
%d, %f
scanf -
&

5.if else, switch

switch(a) a ( )
case break

2.1.3.


  • - printf, scanf, if, else if, switch . double, int, float . #include<stdio.h> , return 0; . . 그고 printf("%lf",input); .

  • - printf scanf. swtich, if else if . . . . .

  • - c . 4 , printf, scanf,switch, if 고 그 C 구경 , C . , . 고, .

2.2. 2


2.2.1.

O
O
O
O

2.2.2.

1.(while, for)



#include <stdio.h>
int main()
{
	int i;
	for(i=0;i<10;i++)
	{
		printf("%d\n", i);
	}


	return 0;
}

구구
#include <stdio.h>
int main()
{
	int i, j;
	for(i=1;i<10;i++)
	{
		for(j=1;j<10;j++)
			printf("%d*%d=%d\n", i,j,i*j);
		printf("\n");
	}

	return 0;
}

#include <stdio.h>
int main()
{
	int i, j;
	for(i=0;i<10;i++)
	{
		for(j=0;j<=i;j++)
			printf("*");
		printf("\n");
	}

	return 0;
}

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:45
Processing time 0.0183 sec