CS201 Assignment 1 solution spring 2021 download full source code from VUBWN.
// SOURCE CODE START FROM HERE
// VUBWN.BLOGSPOT.COM
#include<iostream>
using namespace std;
int main()
{
int x,y,z,id;
x=2;
y=1;
z=x*x+2*x*y-x/y;
cout<<"After evulation of of given expression the value of z is ="<<z<<endl;
cout<<"Enter the last digit of your VU ID :"<<endl;
cin>>id;
z=id+z;
if(z%2==1)
{
int c=0;
while(c<z)
{
cout<<"Iteration "<<c+1<<endl;
cout<<"BC200423432"<<endl;
c++;
}
}
else if(z%2==0)
{
int c=0;
while(c<z)
{
cout<<"iteration "<<c+1<<endl;
cout<<"Muhammad Ashfaq"<<endl;
c++;
}
}
return 0;
}
0 Comments
If you have any queries please drop in your comments.