Algoritma

Ekrandan girilen n tane integer ikililerin toplamını alan, eğer sayılar birbirinden farklıysa toplamlarını ekrana yazdıran, sayılar aynıysa toplamının karesini ekrana yazdıran console uygulamasını yazınız.

Örnek Input: 2 3 1 5 2 5 3 3

Output: 5 6 7 81

Proje Zamanı!

Submit your work to complete this lesson.

Join the project workspace to share your solution and receive feedback.

Lesson discussion

Swap insights and ask questions about C# Projeleri

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.