Title: ": kereneliwigs'com
1???? ????? ?????
- ????? 5
- ??? ???? ??? ??? 1100-1200
- ???"? keren_at_eli-wigs.com
2????????
- ??????? ??? ??? ??? ????? ?????? ?????? ????.
- ?? ??????? ????? ?"? 3 ????
- ????? ???? ????????? ??????. ?? ???????? ??
?????? ??? ?????? ???? void. - ?? ???????? ????? ????? ???????.
- ??????? ?????? ????? ???????? ???? ?? ???????
???????. ??? ????? ?? ????? ?? ??????. - ?? ?? ??? ???????, ???????? ?? ????.
3- ???????? ?? ?????, ????????? ???? ?????? ????
???? ???? ???? ????? ??? ?? ???????. - ????, ?? ???? ?????? ???????? ???? ??????? ????.
4?????
- include ltstdio.hgt
- int abs(int x)
-
- if (xlt0)
- return (-x)
- return (x)
-
- void main()
-
- int a,b
- printf (\n enter 2 numbers)
- scanf (dd,a,b)
- Printf ( the absolute value of a d, the
absolute value of bd,abs(a),abs(b))
????? ?????
5- ?? ???? ????? ??????? ???? ???????.
- ????, ?? ???? ????? ?? ???????? abs ???? ????????
main. - ?? ??????? ????? ????? ???????? ??????? ?????.
- ???? ???? ?? ?? ???????? ???????? ??? ??????
????? ???? ????? ??? ????? ?? ?? ?????????? - ????? ?????
- ???? ?????? ?? ????????? ?????? ??????, ????
????? ?-include - ?"? ????? ????? ???????? ???? ?????? ??? .
-
6???? ??????
- ????? ????? (?????) ??? ????? ?????? ????
????????. - ??? ???? ?? ??? ?"? ???????? ??? ??? ?????.
- ????
- int abs(int x)
-
- int z
- if (xlt0)
- z-x
- else
- zx
- return (z)
-
- Z ??? ????? ????? ?? ???????? abs .
7- ????? ?????? ????? ?????? ???? ???? ????????.
- ???? ????? ?? ????? ?????? ??? ???? ?????? ?????,
?????, ?? ????????? ???????? ????? ????? ????. - ????? ????? ????? ?????? ?????? ????????
????????. - ????, ???????? abs X ??? ????? ?????.
- ????? ?? ???? ?? ?"? ???????? ???? ??? ?????, ??
???? ??????? ????? ?"? ???????? ??????.
8?? ????? ???? ???? ?? ?????? ?????
- include ltstdio.hgt
- void func(int x,int y)
-
- x10
- y30
- printf ("\n xd yd",x,y)
-
- void main()
-
- int a3,b7
- func(a,b)
- printf ("\n ad bd",a,b)
-
- ??? ?? ?????? ????? ?? ??????.
9???? ????? ?????? 5 ????? ?? ?????? ??????
??????? ??? ????? ??????? ????? ????? ??.
- include ltstdio.hgt
- int fixed(float a,float b ,float c)
-
- return (altb bltc)
-
- void main()
-
- float num1,num2,num3
- int count0,i
- for (i1ilt5i)
-
- printf ("\n enter 3 numbers")
- scanf ("fff",num1,num2,num3)
- countfixed(num1,num2,num3)
-
- printf ("\n there are d fixed three",count)
-
10???? ????? ?????? ?????? ????? ???????? ???????
?? ??????. ????? ??????? ???? ?? ????? ?????
0.???? ????? ??????? ?????? ????? ?????? ???
????? ????.
- include ltstdio.hgt
- int multi (int a,int b)
-
- int i,result0
- for (i1iltbi)
- resulta
- return result
-
- void main()
-
- int num,ans1
- do
-
- printf ("\n enter a number")
- scanf ("d",num)
- if (num)
- ansmulti(num,ans)
-
- while (num)
11???? ????? ?????? ???? ??????? ???? ????, ??????
??? ????? ???? (???? ????? ?????? 30 ???????)
???? ??????? ???? (???? ??? 2 ??????? ?? ?????).
?????? ???????? ???.
- include ltstdio.hgt
- int num_item(int num,int capacity)
-
- int ans
- if (!(numcapacity))
- return (num/capacity)
- return ((num/capacity)1)
-
- void main()
-
- int pupils
- printf ("\n enter number of pupils")
- scanf ("d",pupils)
- printf ("\n we need d classes",num_item(pupils
,30)) - printf ("\n we need d desks",num_item(pupils,2
))
12???? ????? ?????? ?????? ?? ??????. ?? ?????
?????? ???????? ??? 1, ????? ?????? ?? ????? ????
???????. ?? ????? ?????? ??? 2, ????? ?????? ??
????? ???? ???????. ?? ????? ?????? ??? 3 ?????
?????? ?? ?????? ???????. ????? ??????? ??????
???? ????? ?????? ???????? ??? ?? 1 ?? 2 ?? 3.
- include ltstdio.hgt
- void ave(float x,float y)
-
- printf ("\n the average is f",(xy)/2)
-
- void main()
-
- float a,b,c,d
- printf ("\n enter 4 numbers")
- scanf ("ffff",a,b,c,d)
- while (a1 a2 a3)
-
- if (a1) ave(b,c)
- if (a2) ave(b,d)
- if (a3) ave(c,d)
- printf ("\n enter 4 numbers")
- scanf ("ffff",a,b,c,d)
-