We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>


Looking For Something at vustudents.ning.com? Click Here to Search

CS201 Introduction to Programming

Information

CS201 Introduction to Programming

CS201 Introduction to Programming.Download/upload Video Lectures, Handouts, Helping Materials, Assignments Solution, Online Quizzes, GDB, Past Papers, Solved Papers and more….

Members: 2294
Latest Activity: on Tuesday

Discussion Forum

CS201 Viva Questions Answers Spring 2019

Started by + M.Tariq Malik. Last reply by 11elqxqr83wiz Aug 2. 12 Replies

cs201 assignment no 3 solution 2019

Started by + !♛BLaiRe ♛!+. Last reply by Usman Khan Jul 13. 13 Replies

cs201 assignment no 3 solution 2019

Started by + !♛BLaiRe ♛!+ Jul 7. 0 Replies

current mid term question required please help me

Started by kashif ali. Last reply by + M.Tariq Malik Jun 17. 1 Reply

I need cs201 Mid Term Papers

Started by + ATHER. Last reply by Junaid Ahmed May 26. 2 Replies

C++ Program error solution.

Started by Usman Khan. Last reply by Usman Khan May 21. 3 Replies

CS201

Started by Honey. Last reply by Honey Dec 24, 2018. 13 Replies

Learn C++ and C language programming in easiest way

Started by M. Kashif Mughal. Last reply by 0cpxij0rwqz2c Nov 18, 2018. 4 Replies

CS 201 Books required

Started by Kash G. Bhattti Oct 4, 2018. 0 Replies

10 Latest Featured Discussion >>> (For Old? View All Featured Discussions.)

Loading… Loading feed

Comment Wall

Comment

You need to be a member of CS201 Introduction to Programming to add comments!

Comment by ZNSK on November 20, 2017 at 3:55pm
Mujhe belkul bhi nai saamjha ari programing ki.koi treqa hai k samjh ajy ye?
Comment by ▓▒░Farrukh░▒▓ on November 18, 2017 at 1:06am

You need a full code or want help in learning some aspects of assignment?

Comment by ZNSK on November 17, 2017 at 10:00pm
Cs 201 ki 2nd Assignment k lye help kary ga koi .please
Comment by Waqar Mustafa on May 3, 2017 at 12:25am

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;
}

Comment by Halima Sadia on April 11, 2017 at 4:03pm

Aoa. KOI MCS first semester Spring 2017 ka student hay to please send me massage in inbox.

Comment by Muhammad Rehan Khan on April 7, 2017 at 5:00pm

Aoa. KOI BSSE first semester 2017 ka student hay to please send me massage in inbox.

Comment by Syed Muhammad Faraz on February 12, 2017 at 2:00pm

Skype is not working tommorrw is viva  its a server problrm

Comment by Abdul Samad on February 8, 2017 at 2:57pm

Mera hogia hai abhi hua hai

Comment by Choco on February 8, 2017 at 2:40pm

kis kis ka viva ho geya hy plz ans me or kia kia pocha ap say teacher nay

Comment by Muhammad Talha on January 16, 2017 at 6:20pm
dosto koi assignment 3 k program k correct code send kray please help me.
 

Members (2293)

 
 
 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service