1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #include <iostream> #include <math.h> using namespace std; int main () { int a,b,c,d,i,j,minimum; cout<<"Enter the all four number "; cin>>a>>b>>c>>d; if(a<b&&a<c&&a<d) minimum=a; else if (b<c&&b<d) minimum=b; else if (c<d) minimum=c; else minimum=d; for(j=minimum;;--j) { if(a%j==0 && b%j==0 && c%j==0&& d%j==0) { break; } } for(i=1;;i++) { if(i%a==0 && i%b==0 &&i%c==0&& i%d==0) break; } cout<<"Lowest Common factor=>"<<i<<endl; cout<<"Highest Common Factor="<<j; } |
Twitter has always suffered an image problem and is not usually taken very seriously by the general public. Its name doesn’t help with some people even saying that ‘Twitter is for twits’. Despite this glamor and brand problem this has not held back its growth after its humble origins and launch in 2006. Since then Twitter has gained popularity worldwide and is estimated to have 225 million users, generating 65 million tweets a day and handling over 800,000 search queries per day. It is sometimes described as the “SMS of the Internet” and its 140 character limit keeps the messages short and simple. Its attraction as a social web media platform is maybe in its simplicity and real time messaging that enables breaking news and information to hit the web instantly without filt30 Terrific Twitter Facts and Figures:- Twitter was created in March 2006 by Jack Dorsey and launched in July of that year. Twitter’s origins lie in a “day long brainstorming session” that was held by board...
Comments
Post a Comment
share your thoughts ....