* : 2011/5/14 5~ 7
* : 06
* : 11 태
* : 06
* : 11 태
4. ¶
- 1
#include <stdio.h>
#define N 10
void selectionSort(int A[], int size);
int main()
{
int i;
int a[N];
for (i=0;i<N;i++) scanf("%d",&a[i]);
selectionSort(a,N);
for (i=0;i<N;i++)
printf("%d\n",a[i]);
return 0;
}
void selectionSort(int A[], int size)
{
int i,j,temp;
for(i=0;i<size;i++){
for(j=i+1;j<size;j++){
if(A[i]>A[j]){
temp=A[i];
A[i]=A[j];
A[j]=temp;
}
}
}
// put your code here
// sort in increasing order
}
- 2
#include <stdio.h>
#include <math.h>
int main()
{
float float_val;
int i,count = 0 ;
float sum = 0; //합
float ave; //평
float val=0;//
float dev; //편
float savePoint[20];
// declare variables here
while (1) {
scanf("%f",&float_val);
if(float_val == -1) break;
// put your code here
savePoint[count] = float_val;
count++;
sum += float_val;
ave = sum/count;
}
for(i = 0;i<count;i++){
val += pow((savePoint[i] - ave),2);
}
val = val / count;
dev = sqrt(val);
printf("%f",dev);
// put your code here
return 0;
}
- 3
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
int i;
int sum;
int one,two;
int sum_count[13] = {0}; // all initialized to 0
srand(time(NULL));
for(i=0;i<36000;i++){
one = rand()%6+1;
two = rand()%6+1;
sum_count[one+two]++;
}
for(i=2;i<13;i++){
printf("%d : %d(%f)\n",i,sum_count[i], (float)sum_count[i]/36000 );
}
// put your code here
return 0;
}
6. ¶
- : F4(ThreeFs + Future Action Plan) 해.
- 페 : ThreeFs, ThreeFs(크), FiveFs(크)
- 크 한 한
- Facts, Feelings, Findings, Future Action Plan. , , , , 획.
- 해 : " 하 5하 .() 했 .() 하 .() 평 .( 획)"
- Facts, Feelings, Findings, Future Action Plan. , , , , 획.
- 페 : ThreeFs, ThreeFs(크), FiveFs(크)
- 팍... 하 . . Ice Breaking !!! .. . 함 히. (?) 했. 한 . 해 한 해 . 한 . 해? -
- 홍호호홍호호 ice breaking ... 픕ㅜ_ㅜ ... 하핫 해ㅠ_ㅠ 했. 택해 한 , 파 ( ). 파 , 파 파 하 포함 . while fgets null break하 if 4(파 4) printf 4행 .(ㅋㅋㅋ) 2 ..학 ... dev . 학히했.. 해하ㅠ_ㅠ 학 학 .. 해할 ㅜ_ㅜ( .)c하 학할 하하하하 !! 합♥히히힛 -
- 트 트.... 했 할 트 해 하 트 하 ㅜㅜ 하 트 해 한 하 했.( 한 힌트 ㅋㅋㅋ) 하 할 트 트 트 ( &환하 환하 트 한 해 ㅋㅋ) ㅋㅋ 하 해 . 해ㅋㅋㅋ - 태
- ICE Breaking 하.. 하! ㅋㅋㅋㅋㅋ 한테 할한 통 , ICE Breaking 하 해 . -태
- .. ?,..ㅠㅠㅠㅋㅋㅋㅋ ! 햇 항 히! ..ㅎㅎㅎ 해 팍팍 트 트.. 2,3 .. 파 ! while 4...힝 !ㅠㅠ 할 ! ㅋㅋㅋ 히 ..ㅎㅎㅎ 해! ! ! ...할 ㅋㅋㅋㅋ !히히 한 하 하 !! -










