answersLogoWhite

0

tolong jelasin gimana cara bikin animasi tree d

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Engineering

How do you find the largest and the smallest values among 4 numbers using conditional operators?

int a, b, c, d, max, min; scanf("%d%d%d%d",&a, &b, &c, &d); (a>b)?(max=a,min=b):(max=b,min=a); (c>d)?(a=c,b=d):(a=d,b=c); max=(a>max)?a:max; min=(b<min)?b:min; printf("%d %d\n", max, min);


How sparse matrix can be stored using array?

#include<stdio.h> int main() { int a[20],min,max; int n; printf("\nEnter the num of elements: "); scanf("%d",&n); printf("Enter the elements\n"); for(int i=0;i<n;i++) { scanf("%d",&a[i]); if(i==0) { min=max=a[i]; } if(a[i]<min) min=a[i]; else if(a[i]>max) max=a[i]; } printf("The largest element is %d. The smallest element is %d.", max, min); }


Write an if statement that sets the variable fees to 50 if the boolean variable max is true?

class d { private int fees=0; static void main(boolean max) { if(max) fees=50; } }


Find max and min of given number in c language?

#include<stdio.h> main() { int a[50],max,min,n; printf("enter the noof digits\n"); scanf("%d",&n); printf("\nenter the numbers"); for(i=0;i<n;i++) { scanf("%d",&a[i]); } max=a[0]; min=a[0]; for(i=1;i<n;i++) { if(max<a[i]) max=a[i]; if(min>a[i]) min=a[i]; } printf("\n max is %d \n min is %d",max ,min); }


What do you mean by linearity in parameter and linearity in model?

Any model can be linear/nonlinear. Linearity can be in parameters or in variables. In Y=a+ b*x1 + c*x2 + d*x3 the model is linear in both parameters (b,c,d) and variables(x1,x2,x3) In Y=a+ (b+c)x1 + c*x2 + d*x3 the model is nonlinear in parameters (b,c,d) and linear in variables(x1,x2,x3) In Y=a+ bx1 + c*x2*x3 + d*x3 the model is linear in parameters (b,c,d) and nonlinear in variables(x1,x2,x3) In Y=a+ bx1 + c*x2*x3 + exp(b+d)*x3 the model is nonlinear in parameters (b,c,d) and nonlinear in variables(x1,x2,x3)