[Practice] Addition and Subtraction of Complex Numbers using Structure


Submit solution

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

Author:
Problem type
Allowed languages
C

Problem Definition

Write a C Program to create a Structure that represents a complex number (a + ib), then receive the inputs for two complex numbers and perform addition & subtraction operation on them.

Test Data

Sample Input 0

4 5

10 -2

Sample Output 0

14+3i

-6+7i

Sample Input 1

0 1

10 0

Sample Output 1

10+1i

-10+1i


Comments

There are no comments at the moment.