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.

  • ㅠㅠㅠ . . 하 . ㅠㅠ . 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.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.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.1120 sec