U E D R , A S I H C RSS

새싹교실/2011/Pixar/4월

1. 4 6

  • ~ ㅋㅋ -
    • -

1.1.


  • Type Conversion
  • Type Casting
  • Control Structures
    • Conditional Branch
      • if else
      • switch case
    • Loop
      • for
      • while
      • do while
      • Infinite loop

1.1.1.

#include <stdio.h>
#include <assert.h>


int main()
{
    char grade;
    int score;
    
    scanf("%d", &score) ;

    if((score>=90) && (score<=100)) 
    {
        grade='a';
    } else if((score>=80) && (score<90))
    {
        grade='b';
    } else if((score>=70) && (score<80))
    {
        grade='c'; 
    } else if((score>=60) && (score<70))
    {
        grade='d' ;
    } else 
    {
        grade='f';
    }

       
    printf("%c \n", grade);
    //assert(grade=='c');
    return 0;

1.1.2.

#include <stdio.h>
#include <assert.h>
int main()
{
	char grade;
	int score;
	
	scanf("%d", &score);
	if((100>=score) && (score>=90)){
		grade='a';
		}
	else if((90>score) && (score>=80)){
		grade='b';
		}
	else if((80>score) && (score>=70)){
		grade='c';
		}
	else if((70>score) && (score>=0)){
		grade='d';
		}
	else{grade='f';}


	printf("%c" , grade);


	//assert(grade=='c');

	return 0;
}

1.2.

1.2.1.

  • ㅠㅠㅠ . 감 . . ㅠㅠ . 1, 2, 3 개 거, 5개 ............ . . C 1 C ㅋㅋㅋㅋㅋㅋ ㅎㅎㅎ ㅋㅋㅋ .........ㅋㅋㅋㅋㅋㅋㅋㅋ ㅋㅋㅋ B)

1.2.2.





- -

1.2.3.

  • ! if과 for . . ..ㅋㅋㅋ.. . . ..

1.2.4.


게 과 .
..
- -
  • ?;; -
    • ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ -

1.2.5.

  1. , if else, for ~ while Switch caseㅜㅜㅜㅜ
  2. . . ㅜㅜ
    • -

1.3.



  1. *
    **
    ***
    

  2. ***
    **
    *
    

  3.   *
     ***
    *****
    

  4.   *
     ***
    *****
     ***
      *
    

2. 4 13

2.1.



  • Conditional Branch
    • switch case
  • Loop
    • while
    • do while
    • Infinite loop

2.2.

2.2.1.

  • ㅠㅠ C ........ 구구 n*n개 ㅠㅠ while구 switch 고 C ㅋㅎㅋㅎ ~~~~~~~~~~~~~~~~~~

2.2.2.


if else, swithch, while, for
.... ㅠㅠㅠ
걸 깨

>< ★

2.2.3.

. while과 if for .
길.....
. .!~

SSANG_★

3. 4 27

3.1.

3.2.

3.2.1.

  • ㅠㅠ. . 그거 ㅠ-ㅠ . 그게 . ㅋㅋㅋ . 그거 ..ㅠ.ㅠ.ㅠ.ㅠ.ㅠ

3.2.2.

.

.

3.2.3.

local,global,static 고, 고, .
. . ㅋㅋㅋ ㅋㅋㅋㅋㅋㅋㅋㅋ

3.2.4.

.

.
. .


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