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

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# CS401 Assignment No 02 Fall 2019 Solution & Discussion Due Date: 26-11-2019

CS401 Assignment No 02 Fall 2019 Solution & Discussion Due Date: 26-11-2019

Q1. Write a subroutine that will find the first even number from an array of your VU ID and calculate its factorial.                        (10 Marks)Q1. Write a subroutine that will find the first even number from an array of your VU ID and calculate its factorial.                        (10 Marks)
Note: Skip 0’s in your VU ID as shown below,VU ID: BC190206435After skipping 0’s, array would be:Array: 1, 9, 2, 6, 4, 3, 5The first even number is 2 in the array so its factorial will be calculated and saved in AX register.
Q2. Write a code in assembly language (using appropriate jumps) equivalent to this given code in C. (10  Marks)#include <stdio.h>int main(){    int n1=1, n2=2;    int largest;    if( n1>n2)        largest=n1;else        largest = n2;    return 0;}

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 2401

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Attachments:

### Replies to This Discussion

Our main purpose here discussion not just Solution

Students having same subject can start discussion here to solve assignment, GDB & Quiz and can clear their concepts until solution is provided.

P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

Then copy Questions from assignment file and paste in Discussion.

http://bit.ly/vucodes (For Assignments, GDBs & Online Quizzes Solution)

http://bit.ly/papersvu (For Past Papers, Solved MCQs, Short Notes & More)

++

CS401 Assignment No 02 Solution fall 2019

CS401_Assignmnet_2_Solution_Fall_2019_vustudents.ning.com.docx

plz discussanyone?

??????????

tariq sab plz help??

# CS401 Assignment No 2 Fall 2019 Helping Video For Students

CS401 Assignment 2 Solution Fall 2019 | Virtual University

Bhai g thats wrong

code run hi ni hoga

1 8 11 20 22 line main error aye ga

CS401 Assignment 2 Complete Solution Fall 2019 | Virtual University |

CS401 Assignment No 02 Solution fall 2019

CS401_Assignmnet_2_Solution_Fall_2019_vustudents.ning.com.docx

## Latest Activity

+!!! Annie !!!+ liked ٹمبکٹو's discussion حاضری
1 minute ago
1 minute ago
+!!! Annie !!!+ liked + IUUOƆƎUT +'s discussion یہ تو حسن و عشق کے ہیں مرحلے
1 minute ago
+!!! Annie !!!+ liked ٹمبکٹو's discussion گناہ
1 minute ago
kashif ali joined + M.Tariq Malik's group

### EDU601 Philosophy of Education

38 minutes ago
ٹمبکٹو posted discussions
1 hour ago
4 hours ago
4 hours ago
4 hours ago

1

2

3