Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Assignment 1: Source Code

#include<iostream> #include<conio.h> using namespace std; int main() { int iNum oAdd!iSum"#; cout<<$N% &: he num'er count cannot 'e more than 1#$<<endl; cout<<$&nter the no. o( Num'ers to add:$; cin>>iNum oAdd; ))int const iConsSi*e"iNum oAdd; int iArrNum+1#,; ))getting input num'ers to add (or(int i"#;i<iNum oAdd;i--) { cout<<$enter num'er to add:$; cin>>iArrNum+i,; iSum"iSum-iArrNum+i,; . cout<<$Sum o( the num'ers is:$<<iSum; ))(or retaining the output screen getch(); . return #;

%utput:

You might also like