In this program the user will input 10(maximum numbers) one by one and our task is to calculate the sum of positive numbers entered by the user.
Note: The user can enter both positive and negative number in any sequences.
Example:
Input : 7 -1 3 01 5 1 4 -2 4 1
Output :
Sum of Positive numbers is: 26
Explanation: 7 + 3 + 01 + 5 + 1 + 4 + 4 + 1
Text version of video : https://kkcodes.in/posts/title/sum-of...
Other Related Videos
1. Excel Column Title Problem : • Excel Sheet Column Title | Amazon | Google...
2. Balanced Parentheses : • Check for balanced parentheses using stack...
3. Calculate Maximum Profit (Apple Interview Question) : • Calculate maximum profit from stocks | App...
4. Count No of 1's bit : • Count set bits in an integer || number of ...
5. Find unique element in the array : • Find unique element in the array, every ot...
6. Remove Duplicate Elements : • Remove duplicate elements from an array
7. Pythagorean triplet in an array : • Pythagorean triplet in an array.
Other Related Videos
Pattern with String : • patterns with characters/string
Triangle Star Pattern : • triangle star patterns(nested loop)
Number Pattern : • number patterns
Pattern Program : • pattern of numbers
Right Angle Triangle Star Pattern : • right angle triangle star
Alphabet Star Pattern
Alphabet 'N' star Pattern : • print alphabet 'N' with stars.
Alphabet 'K' star Pattern : • print alphabet 'K' with stars.
Alphabet 'C' star Pattern : • print alphabet 'C' with stars.
Alphabet 'B' star Pattern : • print alphabet ' B ' with stars
Alphabet 'A' star Pattern : • Print alphabet 'A' with stars.
Follow KK Codes on
Telegram : https://t.me/joinchat/m3j4r8I2c80wMWE1
Facebook : / kkcodes
Website : https://kkcodes.in/
Instagram : / kk_codes