answersLogoWhite

0


Best Answer

(defun max3 (a b c)

(cond ((> a b) (cond ((> a c) a) (t c)))

((> b c) b)

(t c)

)

)

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a Program in lisp to find maximum of three numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write a c program to sort three integer numbers using nested if statement?

// HI THIS IS MAYANK PATEL /*C Program to find Maximum of 3 nos. using Nested if*/ #include<stdio.h> #include<conio.h> void main() { int a,b,c; // clrscr(); printf("Enter three number\n\n"); scanf("d%d",&a,&b,&c); if(a>b) { if(a>c) { printf("\n a is maximum"); } else { printf("\n c is maximum"); } } else { if(b>c) { printf("\n b is maximum"); } else { printf("\n c is maximum"); } } getch(); }


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


Biggest of three numbers using ternary operator in java?

// largest = largest of a, b, c public class largest { public static void main(String args[]) { int a,b,c,largest; a=0; b=0; c=0; a=Integer.parseInt(args[0]); b=Integer.parseInt(args[1]); c=Integer.parseInt(args[2]); largest=a>b?(a>c?a:c):(b>c?b:c); System.out.println("The largest no. of "+a+","+b+"and"+c+"is"+largest); } }


How do you write a Turbo C plus plus program that reads sides of triangle?

You write it exactly the same as you would write it in any other verions of C++, by taking user input to determine the three sides of your triangle. In other words, input three real numbers. What you do with those three numbers is entirely up to you, but presumably you'd want to calculate the angles of a triangle given the length of its three sides. For that you would need to use the cosine rule which states that for any triangle with angles A, B and C whose opposing sides are a, b and c respectively, cos A = (b2 + c2 - a2)/2bc and cos B = (c2 + a2 - b2)/2ca. Knowing two angles, A and B, you can easily work out that angle C must be 180 - (A + B).


Draw a flowchart that will determine and display the largest among the three numbers being inputted?

start input A & B if A>B print A is greatest if B>A print B is greatest stop james ola writes.....SOT.

Related questions

Shell program for gcd of three given numbers?

write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? write a shell program for finding out gcd of three given numbers? check bellow link http://bashscript.blogspot.com/2009/08/gcd-of-more-than-two-numbers.html


Write a c program to sort three integer numbers using nested if statement?

// HI THIS IS MAYANK PATEL /*C Program to find Maximum of 3 nos. using Nested if*/ #include<stdio.h> #include<conio.h> void main() { int a,b,c; // clrscr(); printf("Enter three number\n\n"); scanf("d%d",&a,&b,&c); if(a>b) { if(a>c) { printf("\n a is maximum"); } else { printf("\n c is maximum"); } } else { if(b>c) { printf("\n b is maximum"); } else { printf("\n c is maximum"); } } getch(); }


How do you write in numbers three thousand three hundred sixty-nine?

How wood you write in numbers three thousand three hundred sixty-nine


Write a 'c' program to fine a largest of three numbers?

largest of a, b, c :a > b ? a > c ? a : c : b > c ? b : c


The sum of a number and three times another number is 18. find the numbers if their product is a maximum?

"The sum of a number and three times another number is 18. find the numbers if their product is a maximum?"


How do you write three thousand in numbers?

3000


How do you write three trillion in numbers?

3,000,000,000,000


How do write three hundred three and two hundredths in numbers?

303.02


How can you write five million eight thousand and twenty three in numbers?

The correct way to write it in numbers is: 5,008,023.


Write the program in qbasic and add two numbers?

Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end


What do you do when you have three modes and they're each two numbers?

If you have 3 modes, write down the three as your answer. If the mode has two numbers, just write one of the numbers down.Repeat on the other two modes.


What is the maximum numbers pull to decide a winner of a tag-of-war contest?

Three.