© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
33 replies
rallez

print out all pairs of natural numbers whose sum isequal to the entered number n

Write an algorithm that prints out all pairs of natural numbers whose sum is
equal to the entered number n.
Example:
n = 7
Paris:
0 + 7
1 + 6
2 + 5
3 + 4

I have no clue how to introduce it into c# lang
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

needed to get 100 pairs of number find all the biggest numbers output is the lowest number
C#CC# / help
3y ago
sum of all numbers in between [Answered]
C#CC# / help
4y ago
❔ Trying to find a way so it shows the sum of all the numbers entered and the also the average.
C#CC# / help
3y ago
Find the square root of the sum of the digits of a three-digit natural number.
C#CC# / help
4y ago