MCS (Master of Computer Science)

Information

MCS (Master of Computer Science)

MCS (Master of Computer Science)

Website: http://www.virtualians.pk/
Members: 150
Latest Activity: Nov 28, 2018

Comment Wall

Comment

You need to be a member of MCS (Master of Computer Science) to add comments!

Comment by Subhan Mughal on October 19, 2017 at 2:21pm

Assalam-o- Alaikum to all

Comment by Osama MCS on December 24, 2016 at 12:02am

Did anyone sit the cs402 exam recently?

Comment by tanzeelNiazi (MCS) on December 30, 2013 at 6:59pm

Don't know in what context you are using this program but here is how you can use it using functions;

#include
using namespace std;

void myFunc (int, int);

int main () {

int number = 0;
int maxDigit = 0;

cout "Please Enter the Max Digit Number: "; cin >> maxDigit;

cout "Please Enter the Number: "; cin >> number;
myFunc(maxDigit, number);

return 0;
}

void myFunc (int maxDigit, int number) {

int digit = 0;

for (int i = 0; i <= maxDigit; i++) { digit = number % 10; cout digit ", "; number = number / 10; } }

Comment by Dilsher Balouch on December 30, 2013 at 12:27pm

I have written the following program. I want to use function for "for loop". Can anyone help me. The program is as follows.

#include<iostream.h>
main ()
{
int number, digit, maxDigit, i;
cout"Please enter the max digit: ";
cin>>maxDigit;
cout"Please enter the number: ";
cin>>number;
cout"The digits are: ";
for (i=1; i<=maxDigit; i++)
{
digit = number%10;
coutdigit",";
number = number / 10;
}
}

Comment by Iqra on October 28, 2013 at 11:11am

Welcome to Semester fall 2013

Comment by Amñ@ M!$h@l MÇ$ (3rd) on May 17, 2013 at 4:46pm

i feel k mjhy kafi hd tk cs402 smjh aa jati ha

phr b assignment ma 7 marks aye

:-)

Comment by Shahzad (MCS 1st) on December 7, 2012 at 2:00am

What will be the output of the following program
a) Program 1:

#include
int main()
{
unsigned short x = 1;
for (int i = 0; i < 10; i++)
{
cout x endl; x = x 1; } return 0; } b) Program2: #include
int main()
{
unsigned short x = 1024;
while(x>=1)
{
cout <="" endl;="" x="x">> 1;
}
return 0;
}

Comment by Hina Awan on December 2, 2012 at 7:02pm

hi frndx tell me solution of eng201 assignmet

Comment by Khalid afzal(MCS 1) on November 29, 2012 at 2:25pm

yaar plz help me in CS402,

Comment by Khalid afzal(MCS 1) on November 29, 2012 at 2:24pm

what is the time for STA301 quiz confrence

 

Members (149)

 
 
 

SPONSORED LINKS

SPONSORED LINKS

© 2020   Created by Irfan Khan MSCS.   Powered by

Badges  |  Report an Issue  |  Terms of Service