Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
21Activity
0 of .
Results for:
No results containing your search query
P. 1
Practical Assignment

Practical Assignment

Ratings: (0)|Views: 384|Likes:
Published by nishankyadav

More info:

Published by: nishankyadav on Feb 07, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

 
 
NAME : Nishank YadavREG. NO. :YEAR : 2009/10
 
 
Certificate
 
This is to certify that Nishank Yadav of class twelve, Modern School, Vasant Vihar hassuccessfully completed his practical assignment file incomputer science for the AISSCE as prescribed by CBSEin the year 2009-2010.Date :Registration No. :Signature of Internal Signature of ExternalExaminer Examiner  __________________  __________________ 
 
C++ Revision Tour
Q- Write a program to find the LCM and GCD of two numbers
.#include<iostream.h>#include<conio.h>void main(){clrscr();int x,y,gcd=1;cout<< "ENTER 1st NO : ";cin>>x;cout<<"\n\nEnter 2nd NO. :";cin>>y;for(int i=1;i<1000;++i){if((x%i==0)&&(y%i==0))gcd=i;}cout<<"\n\n\nGCD :"<<gcd;cout<<"\n\n\nLCM :"<<(x*y)/gcd;getch();}
OUTPUT:
ENTER 1st NO : 12ENTER 2nd NO. :13GCD :1

Activity (21)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Suraj Mysore liked this
adamshih liked this
Rajesh Verma liked this
PRASATH.R liked this
gefinna liked this
gefinna liked this
syriluit liked this
Rajesh Verma liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->