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 is L D max?

L D max, or the lethal dose maximum, refers to the highest dose of a substance, such as a drug or toxin, that can cause death in a specific percentage of a test population, usually expressed as LD50 (the dose that kills 50% of the population). It is a crucial measure in toxicology to assess the toxicity of substances. Understanding L D max helps in evaluating safety margins for drugs and chemicals in medical and environmental contexts.