Created
December 4, 2018 08:19
-
-
Save whopiyush/e51ee495a2a6840ffb707ac69f722750 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main(){ | |
| int sum=0,a[5]; | |
| cout << "Enter Numbers!"; | |
| for(int i =0; i<5;i++){ | |
| cin >> a[i]; | |
| } | |
| for(int j=0;j<5;j++){ | |
| sum = sum + a[j]; | |
| } | |
| cout << " Sum Is: " << sum; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment