Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #72.7K
~792 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for soche123

code is #include <iostream> #include <conio.h> using namespace std; int main() { int count=1; while (count++ <=5) cout<<count*(count-2)<<" "; cout<<endl; } WHat I don't get is how count becomes 3,8,15,24...thanks!

Member Avatar for RonalBertogi
0
209
Member Avatar for kamalashraf

#include<iostream> #include<fstream> using namespace std; int main() { int n=0; int sum=0; ifstream fin; fin.open("input.txt"); for (int i=0; i<4; i++) { fin >> n; sum=sum+n; } cout << "Sum of given numbers is " << sum << endl; return 0; } in the above code, i want to fetch data …

Member Avatar for triumphost
0
583