Sie sind auf Seite 1von 1

1.

Sum, difference and product of two numbers


2. Solve the expression: p = a * a + b * b + 2 * a * b
3. Exchange the values
4. Factorial of a number
5. Largest among three given numbers
6. Smallest among three given numbers
7. Total price of an item (input: quantity, price)
8. Sum of n numbers
9. Temperature conversion
10. Roots of a quadratic equation
11. Write a program that prints the numbers from 1 to 100. For multiples of three
print "Fizz" instead of the number and for the multiples of five print "Buzz". For
numbers which are multiples of both three and five print "FizzBuzz".

Das könnte Ihnen auch gefallen