|
io.h>
int main(void)
{
floatresistor1=1000.0, resistor2=500.0,equ_resistance;
equ_resistance=1.0/(1.0/resistor1+1.0/resistor2);
printf("Equivalent resistance is %f \n",equ_resistance);
return(1);
}
|
- 페이지 2페이지
- 가격 800원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
(B!=1)))
{
puts("Invalid input");
okay=FALSE;
}
else okay=TRUE;
} while ( !okay );
do
{
printf("Enter C input (0 or 1) >>");
rtn=scanf("%d",&C);
if ((rtn!=1) ||( (C!=0) && (C!=1)))
{
puts("Invalid input");
okay=FALSE;
}
else okay=TRUE;
} while ( !okay );
Z=!((A && B) || C);
printf("Output will
|
- 페이지 24페이지
- 가격 3,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
c\n",value,value);
return(0);
}
▤ 프로그램 4.22
/* Program to determine equivalent resistance */
/* of two resistors in parallel */
#include<stdio.h>
int main(void)
{
float R1,R2,Requ;
puts("Enter R1 and R2");
scanf("%f %f",&R1,&R2);
Requ=1.0/(1.0/R1+1/R2);
printf("Parallel resistance is %f",R
|
- 페이지 12페이지
- 가격 2,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
c)opper");
puts("(a)luminum");
puts("(s)ilver");
puts("(m)aganese");
/* get conductor type*/
ch=getchar();
printf("Enter radius and length of conductor >>");
scanf("%f %f",&radius,&length);
/* area of conductor*/
area=PI*(radius*radius); /* convert to lowercase and determine resistivity*/
swit
|
- 페이지 12페이지
- 가격 2,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
, c;
a = -1;
b = 2;
c = a >> b;
printf(%d \n", c);
}
프로그램 3.12 /* 증감 연산자 사용 */
#include <stdio.h>
main()
{int i, j, ip, jp, is, js;
i = 5;
ip = 10 + ++i; /* i를 먼저 증가시킨후 이 값에 10를 더하는 문장 */
j = 10;
jp = 10 + --j; /* j를 먼저 감소시킨후 이 값
|
- 페이지 5페이지
- 가격 1,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|