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>rabierre
No edit summary
imported>rabierre
No edit summary
Line 56: Line 56:
착하다착하다 궁디팡팡팡
착하다착하다 궁디팡팡팡
==== 이승열 ====
==== 이승열 ====
 
#include <stdio.h>
#include <stdio.h>
#include &lt;assert.h&gt;
#include <assert.h>
int main()
int main()
{
{
char grade;
char grade;
int score;
int score;
scanf("%d", &amp;score);
scanf("%d", &score);
if((100&gt;=score) &amp;&amp; (score&gt;=90)){
if((100>=score) && (score>=90)){
grade='a';
grade='a';
}
}
else if((90&gt;score) &amp;&amp; (score&gt;=80)){
else if((90>score) && (score>=80)){
grade='b';
grade='b';
}
}
else if((80&gt;score) &amp;&amp; (score&gt;=70)){
else if((80>score) && (score>=70)){
grade='c';
grade='c';
}
}
else if((70&gt;score) &amp;&amp; (score&gt;=0)){
else if((70>score) && (score>=0)){
grade='d';
grade='d';
}
}
else{grade='f';}
else{grade='f';}
 
 
printf("%c" , grade);
printf("%c" , grade);
 
 
//assert(grade=='c');
 
return 0;
 
}
 
 
 
 
 
//assert(grade=='c');
 
 
return 0;
}
==== 한광운 ====
==== 한광운 ====



Revision as of 11:09, 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

후기

김연석

#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;


오상준

상준이 잘 다녀와 우쭈쭈쭈 궁디팡팡 착하다착하다 궁디팡팡팡

이승열

#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;
}

한광운

감히 창설따위로 새싹을 안오다니 다음부터 너에게 과자와 음료수따위는 없다. 두번이나빠지다니.. 광운이실망이야 -새싹 선생님-

김수경


새싹교실/2011/Pixar