This website uses cookies to ensure you have the best experience. Learn more

Value Of Y Essay

657 words - 3 pages

Value of Y:
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int x,a,b,k,y;

printf("enter k:");
scanf("\n%d",&k);
printf("\nenter a:");
scanf("\n%d",&a);
printf("\nenter b:");
scanf("\n%d",&b);
printf("\nenter x:");
scanf("\n%d",&x);
if(k==1)
{y=(a*x)+b;
printf("y=%d",y);}
if(k==2)
{y=(a*x*x)+(b*b) ;
printf("y=%d",y);}
if(k==3)
{y=-(a*x);
printf("y=%d",y);
}
if(k==4)
{y=a+x;
printf("y=%d",y);
}
getch();
}
LEAP YEAR:
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int year;
printf("enter a year:");
scanf("\n%d",&year);
if( (year%4==0)||(year%400==0)||(year%100==0))
printf("year is a leap year");
else
printf("year is not a leap year");
getch();
}
SWITCH IVO:
#include<stdio.h>
...view middle of the document...

h>
#include<conio.h>
void main(void)
{
clrscr();
int x;
int sum=0;
for(x=0;x<=100;x+=2)
{ printf("\nx=%d",x);
sum=sum+x;
printf("\tsum=%d",sum);}

getch();
}
VOB:
#include<stdio.h>
#include<conio.h>
int volume (int x,int y,int z);
void main(void)
{
clrscr();
int l,b,h,vob;
printf("enter l:");
scanf("\n%d",&l);
printf ("\nl=%d",l);
printf("\nenter b:");
scanf("\n%d",&b);
printf("\nb=%d",b);
printf("\nenter h:");
scanf("\n%d",&h);
printf("\nh=%d",h);
vob=volume(l,b,h);
printf("\nvolume=%d",vob);

getch();
}
int volume (int x,int y,int z)
{int v;
v=x*y*z;
return (v);
}
APPEAR:
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int age;
printf("enter your age");
scanf("%d",&age);
if((age>=5)&&(age<=15))
printf("you can appear in contest");
else
printf("you cannot appear in contest");

getch();
}
FIBBON:
#include<stdio.h>
#include<conio.h>
void main(void)
{
clrscr();
int sum=0;
int ab;
int a,b,y;
printf("enter a&b\n");
scanf("%d,%d",&a,&b);
for(int x=a;x<=10;x++)
{ab=a+b;

a=b;

b=ab;
printf("\n%d",ab);
}

getch();
}
INTAD:
#include<stdio.h>
#include<conio.h>
int add (int a,int b);
int minus (int a,int b);
int divide (int a,int b);
int reminder(int a,int b);

void main(void)
{
clrscr();
int a,b,sum,sub,div,rem;
printf("enter a:");
scanf("\n%d",&a);
printf("\nenter b:");
scanf("\n%d",&b);
sum=add(a,b);
printf("\nA+B=%d",sum);
sub=minus(a,b);
printf("\nA-B=%d",sub);
div=divide(a,b);
printf("\nA/B=%d",div);
rem=reminder(a,b);
printf("\nremainder ofA/B=%d",rem);

getch();
}
int add (int a,int b)
{int c;
c=a+b;
return(c);}
int minus (int a,int b)
{int d;
d=a-b;
return (d);
}
int divide(int a,int b)
{int e;
e=a/b;
return (e);
}
int reminder (int a,int b)
{int f;
f=(a%b);
return (f);
}

Other Essays Like Value of Y

Parabola Investigation Essay

579 words - 3 pages same method to find the intersected points of y1 and y3, ax2+bx+c=2x ax2+(b-2)x+c=0 Δ=(b-2)2-4ac →x=[pic] So b1+b2=[pic] =[pic] Using the equation in part 1, D=│ (a1+ a2 )-(b1+b2) │ =[pic] =[pic] Conclusion: The general form for D as the D=│SL-SR│ (or =│ (a1+ a2 )-(b1+b2) │,a1a2 represent the x-value of intersection of parabola and y=x, b1b2 represent the x-value of intersection of parabola and

Global Ostomy Care Accessories Market - Share, Trends, Forecast and Analysis to 2021

5152 words - 21 pages Accessories Market Value & Y-o-Y Growth (%) by Stoma Capes Product Type, 2014–2021 Persistence Market Research 17 Global Ostomy Care Accessories Market - Driven by Technological Innovations and Increasing Incidences of Gastrointestinal Diseases (2021) Figure 14: Global Ostomy Care Accessories Market Absolute $ Opportunity by Stoma Capes Product Type, 2014–2021 Figure 15: Attractiveness Index By Product Type Segment, 2014–2021 Figure 16: Ostomy

Nash Equilibrium Exercises

978 words - 4 pages ) )= C_x x+ C_y y=1x+1y M= 3^(1/(β-1)) y+y M=y (3^(1/(β-1))+1) y= M/(3^(1/(β-1))+1) Solving for x x= 3^(1/(β-1)) y x= 3^(1/(β-1)) .(M/(3^(1/(β-1))+1)) x= (3^(1/(β-1)).M)/(3^(1/(β-1))+1) Following the expression for the maximum value of the utility function in the case that y and x take the previous values U_((x,y) )=(x^β+ 3y^β )^(1/β) U_((x,y) )=(((3^(1/(β-1)).M)/(3^(1/(β-1))+1))^β+ 3(M/(3^(1/(β-1))+1))^β )^(1/β

Jsb Market Research : the Future of the Feminine Hygiene Market in the United States to 2018

2984 words - 12 pages market size (2008, 2013 and 2018), by Volume (Units m), by Segments Table 48: United States Womens Disposable Razors and Blades Market Value by Brands (USD m), 2010-13 Table 49: United States Womens Disposable Razors and Blades Market Value by Distribution Channel (USD m), 2010-13 List Of Figures Figure 1: United States Feminine Hygiene Market Value (USD m) and Growth (Y-o-Y), 2008-18 Figure 2: United States Feminine Hygiene Market Value

Local Government in Bd

1042 words - 5 pages the appropriate letter. (ii) Place each of the numbers 34, 35, 36 and 37 in the appropriate part of your diagram. (iii) State the value of n(O ∞ S) and of n(O † S). 4037/1/M/J/03 [2] [2] [3] [Turn over 4 9 Solve (i) log 4 2 ! log 9 (2x ! 5) # log 8 64, (ii) 9 y ! 5(3 y 0 10) # 0. 10 [4] [4] x y 2 9.2 3 8.8 4 9.4 5 10.4 6 11.6 The table above shows experimental values of the variables x and y. On graph paper draw the

Math221 Wk 5 Answers

1053 words - 5 pages column for g contains four 1`s Then the d.n.f of g is: g(w,x,y,z) = [pic] From the table above the column for g contains twelve 0`s Then the c.n.f of g is: g(w,x,y,z) = [pic] [pic] [pic] b) Answer: [pic] [pic] Question 14 [pic] a) Reflexive f ( f (f(Fn ↔ if the value of f is 1 at least whenever the value of f is 1 (valid) Antisymmetric Let f1 ={(x1,x2,…xn)({0,1}n / f(x1,x2,…xn)= 1

Still and Sparkling Wine Market Research and Analysis in Malaysia - JSB Market Research

2496 words - 10 pages , 2014-19 Table 64: Malaysia Still Wine Market Volume by Brands (Liters m), 2011-14 Table 65: Malaysia Still Wine Market Volume by Distribution Channel (Liters m), 2011-14 List Of Figures Figure 1: Malaysia Still and Sparkling Wine Market Value (MYR m) and Growth (Y-o-Y), 2009-19 Figure 2: Malaysia Still and Sparkling Wine Market Value (MYR m) by Category, 2009-19 Figure 3: Malaysia Still and Sparkling Wine Market Dynamics, by Category, by

Forcast with Arma

4065 words - 17 pages mean-square error defined ˆ 2 by E{(y − y ) }. If all of the available information on y is summarised in its ˆ marginal distribution, then the minimum-mean-square-error prediction is simply the expected value E(y). However, if y is statistically related to another random variable x whose value can be observed, and if the form of the joint distribution of x and y is known, then the minimum-mean-square-error prediction of y is the conditional

Equations of Lines

649 words - 3 pages reciprocal is. Next, you have to use the point given, (1, -5) by plugging it into an equation (that is in slope-intercept form) to find the b value, which is the y-intercept. (The b is in replacement of the -(18/5) from the first equation found.) You plug 1 in for x and -5 in for y. Using the new perpendicular slope and this point, your equation becomes (-5)=(5/7)(1) + b. Next you must get b alone. To do this you subtract (5/7) from the

To investigate the trajectory of a small ball as it rolls off a surface which is

566 words - 3 pages equation which relates x and y is Procedure: 1. The ball was positioned at the top of the ramp. The ball was released so that it rolled down the ramp and onto the board below. 2. The carbon paper was removed and the ball that made a small mark on the blank paper was observed. 3. The vertical distance y and the horizontal distance x were measured and recorded. 4. The value of y was reduced and the steps above were repeated to obtain

Regression

1197 words - 5 pages . d. Use the estimated regression equation to predict the value of y when x=10. e. Compute the coefficient of determination. Comment on the goodness of fit. f. Compute the sample correlation coefficient (r) and explain the result. 2) The Tenaga Elektik MN Company is studying the relationship between kilowatt-hours (thousands) used and the number of room in a private single-family residence. A random sample of 10 homes yielded the

Related Papers

Math Review

1518 words - 7 pages Game Theory Math Review 1 1.1 Function Definition If we write down the relation of x and y as follows, y = f (x) this means y is related to x under the rule f . Also we say that the value of y depends on the value of x. This relation y = f (x) is called as a function if 1) the rule f assigns a single x value to single y value or 2) assigns multiple x values to single y value. 2 2.1 Shape of function When f (x) = ax + b

Thailand Water Pump Market Growth Of The Market In East Asia Is Mainly Driven By Increased Adoption Of Water Pumps In Power Plants

3678 words - 15 pages -o-Y Growth 5.2.1.2. Market Volume Forecast (Units) and Y-o-Y Growth 5.2.2. Monobloc Water Pump 5.2.2.1. Market Value Forecast (US$ ‘000) and Y-o-Y Growth 5.2.2.2. Market Volume Forecast (Units) and Y-o-Y Growth 5.3. Basis Point Share (BPS) Analysis, By Product Type Persistence Market Research 7 Thailand Water Pump Market - Growth of the market in East Asia is mainly driven by increased adoption of water pumps in power plants 6. Thailand

Further Maths T Essay

2038 words - 9 pages different roots 2. Two real and equal roots 3. Two complex roots Two real and different roots Solution: y = Ae + Be where A and B are abitrary constants To verify that this is full solution, we need to confirm the two following conditions: 1. There are two arbitrary constants, as it is second order linear differential equations. 2. The solution does satisfy the equation: d y dy a + b + cy = 0 dx dx To find the value of A and B, we need the

College Algebra Essay

1076 words - 5 pages equal to 1 2x + 2y 2 B. x+y A. C. x2 + 3x + 3 D. x2 − 3x − 3 s−1 2 is equal to − 2 s + 2 s + 2s s−1 s2 + 5s + 2 C. 2 A. 2 + 2s) s + 2s (s + 2)(s 3−s s+1 D. B. 2 (s + 2)(s2 + 2s) s + 2s √ √ 12. What is the reciprocal of ( 5 + 3) ? √ √ √ √ 5− 3 5+ 3 C. A. 2 2 2 2 √ √ B. √ D. √ 5− 3 5+ 3 11. The expression 13. If 6x2 − xyz − y 2 z 2 = 100 and 3x + yz = 10 , then what is the value of 2x − yz ? A