Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

새싹교실/2011/Pixar/4월: Difference between revisions

From ZeroWiki
imported>linflus
No edit summary
imported>kimys1324
No edit summary
Line 15: Line 15:
=== 후기 ===
=== 후기 ===
==== 김연석 ====
==== 김연석 ====
#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;
==== 오상준 ====
==== 오상준 ====
==== 이승열 ====
==== 이승열 ====

Revision as of 09:51, 6 April 2011

4월 6일

공부할 것

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

후기

김연석

  1. include <stdio.h>
  2. 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;


오상준

이승열

한광운

김수경


새싹교실/2011/Pixar