Ticker
6/recent/ticker-posts
Home
About
Disclaimer
Privacy Policy
Contact
Home
PaperPk
PaperJobs
Jobsgar
JobzPk
JobUstad
PakGovt
About
Contact
ad
Home
cpp
FOR LOOP IN C++
FOR LOOP IN C++
by
Admin
June 01, 2018
FOR LOOP IN C++
#include<iostream.h>
#include<conio.h>
void main()
{ clrscr();
int s=0;
int a,b;
cout<<"How many no you want to add:";
cin>>b;
for(int i=1;i<=b;i++)
{
cout<<"\nEnter no"<<i<<":"; cin>>a; s=s+a;
}
cout<<endl<<"sum of all="<<s<<endl;
getch();
}
Post a Comment
0 Comments
Search This Blog
Popular Posts
Facebook
Rizaq Portal
Home
Tags
_CS
_ICUP
_Website
_C++
_JAVA
_HTML
Orzala
Facebook
About Us
Contact Us
Privacy Policy & Disclaimer
Blog Archive
Blog Archive
September (2)
August (3)
July (4)
June (20)
May (15)
Powered by Blogger
Tags
blog
cpp
html
icup
java
website
Followers
Contact Form
Name
Email
*
Message
*
Recent Posts
3/recent/post-list
Tags
blog
8
cpp
8
html
2
icup
4
java
7
website
14
0 Comments