CS201 Introduction to Programming.Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….
Members: 2361
Latest Activity: 19 hours ago
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik 19 hours ago. 6 Replies 1 Like
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Feb 16. 5 Replies 2 Likes
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Feb 8. 2 Replies 1 Like
Started by + ! ! Pagal Dewani ! ! +. Last reply by Saqib Jan 28. 2 Replies 1 Like
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Jan 28. 12 Replies 2 Likes
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Dec 31, 2020. 17 Replies 1 Like
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Dec 18, 2020. 16 Replies 5 Likes
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Feb 17. 2 Replies 3 Likes
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Dec 1, 2020. 25 Replies 4 Likes
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Sep 23, 2020. 8 Replies 3 Likes
Started by ♦_"Tooba Jutt"_♦. Last reply by + M.Tariq Malik Aug 15, 2020. 1 Reply 1 Like
Started by ♦_"Tooba Jutt"_♦. Last reply by Usman Mughal Jul 23, 2020. 5 Replies 1 Like
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik Jun 14, 2020. 1 Reply 2 Likes
Started by ♦_"Tooba Jutt"_♦. Last reply by ♦_"Tooba Jutt"_♦ Jun 16, 2020. 10 Replies 3 Likes
Started by + M.Tariq Malik. Last reply by + M.Tariq Malik May 31, 2020. 1 Reply 2 Likes
Started by +¢αяєℓєѕѕ gιяℓ. Last reply by + ! ! ! ! ! ! !pคຖ໓คค ! ! Jun 2, 2020. 23 Replies 4 Likes
Started by ہاشم. Last reply by Faizan ahmed May 13, 2020. 2 Replies 3 Likes
Comment
koi bs software engineer 1 semester student ha
http://employthere.online/?ref=75020
plz visit this page.........
please share cs201 GDB ?
You need a full code or want help in learning some aspects of assignment?
CS-201 fIRST ASSIGNMENT
#include <iostream>
using namespace std;
bool check_prime(int n);
int main()
{
cout "Waqar Mustafa Assignment of CS201 ,Student ID:mc170202232 " endl;
int prime_numbers[100]={};
init:
double sum=0;
int lower_limit=0;
int upper_limit=0;
cout "Enter Lower Limit:" endl;
cin >> lower_limit;
cout "Enter Upper Limit:" endl;
cin >> upper_limit;
if(lower_limit>upper_limit){
cout"lower number can't be greater than upper number"endl;
goto init;
}
if(lower_limit<2){
cout"Lower Limit should not be less then 2"endl;
goto init;
}
int count_prime=0;
for(int i=lower_limit;i<upper_limit;i++){
if(check_prime(i)==true){
prime_numbers[count_prime]=i;
count_prime++;
//cout i"\t";
}
}
cout"Prime Numbers :";
for(int j=0;j<count_prime;j++){
coutprime_numbers[j]"\t";
sum+=prime_numbers[j];
}
coutendl;
cout "Sum of Prime numbers ="sumendl;
cout" Total Prime Numbers Count ="count_primeendl;
return 0;
}
bool check_prime(int num) {
for (int i = num - 1; i > 1; i--) {
if ((num % i) == 0)
return false;
}
return true;
}
Aoa. KOI MCS first semester Spring 2017 ka student hay to please send me massage in inbox.
Aoa. KOI BSSE first semester 2017 ka student hay to please send me massage in inbox.
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post
You need to be a member of CS201 Introduction to Programming to add comments!