A Simple Mean

View as PDF

Submit solution

Points: 7
Time limit: 0.2s
Memory limit: 2M

Problem type
Allowed languages
Assembly, Lisp, NASM, NASM64, Rust

Your computer engineering instructor gave you a simple task:

Write a program to find the integer mean of three integers A, B, C.

Since you think this is too easy a task for your programming prowess, you've decided to make life more interesting... by computing this simple mean in assembly.

Input Specification

The first line of input will contain 3 space-separated integers A, B, C (0 \le A,B,C \le 10).

Output Specification

The integer mean of the three integers.

Sample Input

1 2 4

Sample Output



To use libc in NASM, the first line of your program should be ; libc. For all others, it should be ; features: libc.


There are no comments at the moment.