- Type
- Quiz
- Course
- CS201 Introduction to Programming
- Size
- PDF 218 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2 of 3. Download the file for all 3 pages.
#include <iostream> using namespace std;
int main()
cout<<" ---AL-JUNAID INSTITUTE GROUP----"<<endl; cout<<" "<<endl;
int x,y,Z; x=2; y=1;
Z = (x*x)+(2*y*x)-(x/y); cout<<" After evaluation of given expression the value of z = "<<Z<<endl;
PAID ASSIGNMENT SERVICES are AVAIBLE
CS506 Cs411 CS403 CS504 CS604 string ID = "BC"; int id1 = 190202640; string name = "MUHAMMAD JUNAID"; int lastdigit; int Gotnumber;
lastdigit = id1 % 10; cout<<"--Last digit of VU ID is "<<lastdigit<<endl; Gotnumber = Z + lastdigit;
string test; int n = 1; if ((lastdigit % 2) == 0)
test = "even"; cout<<"I got an "<<test<<" number "<< Gotnumber<<endl; while (n <= Gotnumber)
cout<<" My name is "<<name<<endl; n++;
else
test = " odd"; cout<<"I got an "<<test<<" number "<< Gotnumber<<endl; while(n <= Gotnumber)
Related CS201 files
All CS201 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.