Chat with our AI personalities
Three digits in an area code.
I use the rule that: (a/b)x(c/d)=(ab/cd) and (a/b)divided by(c/d)= (ac/bd) The reason they change is that when you have to find the lowest common factor, you not only have to change the denominator, but also the numerator.
# include # include int ch,r,a,h,d,l; float Ac, Ar, At; void main() { clrscr(); printf("\n press1,area of circle"); printf("\n press2,area of rectangle"); printf("\n press3,area of triangle"); printf("\n enter your choice"); scanf("%d",&ch); switch(ch) { case 1: printf("\n enter values to find area of circle"); scanf ("%d",&r); Ac = 3.14*r*r; printf("\n area of circle is %f",Ac); break; case 2: printf("\n enter values to find area of rectangle "); scanf("%d%d",&a,&h); Ar= a*h; printf("\n area of rectangle is %f",Ar); break; case 3: printf("\n enter values to find volume of cylinder"); scanf("%d%d",&d,&l); At = 0.5*d*l; printf("\n area of triangle is %f",At); break; DEFAULT: printf("\n enter the proper choice"); } getch(); }
Measure it with a ruler.
The probability of ac and bc is 1/5.