Assignments » Flow Of Control » Set 2 » Solution 2
Source Code:
#include<iostream> using namespace std; int main() { int i=1,sum=0; while(i<=10) { sum+=i; i++; } cout<<"Sum :"<<sum; return 0; }
#include<iostream> using namespace std; int main() { int i=1,sum=0; while(i<=10) { sum+=i; i++; } cout<<"Sum :"<<sum; return 0; }
The Output Is:
Sum : 55
Course Outline BSIT 2 year Program First Semester Outline Second Semester Outline Third Semester Outline ...
Post a Comment