|
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;
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주 판매 이력 없음
|
|
KILO);
return(0);
}
▤ 프로그램 4.18
/* Program to bitwise AND, OR, NAND, NOR and EX-OR two hexadecimal values */
#include <stdio.h>
intmain(void)
{
int value1, value2;
/* &- bitwise ANDoperator*/
/* |- bitwise ORoperator*/
/* ^- bitwise EX-ORoperator*/
/* ~- bitwise NOToperator*/
printf("Enter
|
- 페이지 12페이지
- 가격 2,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|
|
로그램 5.10
#include <stdio.h>
int main(void)
{
enum {BLACK,BROWN,RED,ORANGE,YELLOW,
GREEN,BLUE,VIOLET,GREY,WHITE} colours;
printf("Enter value >>");
scanf("%d",&colours);
printf("Resistor colour band is ");
switch (colours)
{
case BLACK: printf("BLACK"); break;
case BROWN: printf("BROWN
|
- 페이지 12페이지
- 가격 2,000원
- 등록일 2006.04.17
- 파일종류 한글(hwp)
- 참고문헌 없음
- 최근 2주 판매 이력 없음
|