<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GCD of a number | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/gcd-of-a-number/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 04 Apr 2010 13:04:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>C program to calculate the GCD of a number</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-calculate-the-gcd-of-a-number/</link>
					<comments>https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-calculate-the-gcd-of-a-number/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 04 Apr 2010 13:04:32 +0000</pubDate>
				<category><![CDATA[Number Programs]]></category>
		<category><![CDATA[c program]]></category>
		<category><![CDATA[calculate]]></category>
		<category><![CDATA[GCD of a number]]></category>
		<category><![CDATA[Greatest Common Divisor]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1136</guid>

					<description><![CDATA[<p>Write a program to calculate the Greatest Common Divisor(GCD) of a number #include #include #include int gcd(int m,int n) { int rem; while(n!=0) { rem=m%n; m=n; n=rem; } return(m); } main() { int num1,num2,num3,gcd1,gcd2; clrscr(); printf("Enter three positive integers"); scanf("%d%d%d",&#038;num1,&#038;num2,&#038;num3); if(num1==0 &#038;& num2==0 &#038;& num3==0) { printf("\n Invalid number"); exit(0); } gcd1=gcd(num1,num2); gcd2=gcd(num3,gcd1); printf("\n GCD</p>
<p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-calculate-the-gcd-of-a-number/">C program to calculate the GCD of a number</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Write a program to calculate the Greatest Common Divisor(GCD) of a number</p>
<pre lang="c">
#include<stdio.h>
#include<conio.h>
#include<process.h>
int gcd(int m,int n)
{
	int rem;
	while(n!=0)
	{
		rem=m%n;
		m=n;
		n=rem;
	}
	return(m);
}
main()
{
	int num1,num2,num3,gcd1,gcd2;
	clrscr();
	printf("Enter three positive integers");
	scanf("%d%d%d",&num1,&num2,&num3);
	if(num1==0 && num2==0 && num3==0)
	{
		printf("\n Invalid number");
		exit(0);
	}
	gcd1=gcd(num1,num2);
	gcd2=gcd(num3,gcd1);
	printf("\n GCD of %d %d %d is : %d\n",num1,num2,num3,gcd2);
	getch();
}
</pre><p>The post <a href="https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-calculate-the-gcd-of-a-number/">C program to calculate the GCD of a number</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/c-tutorials/c/number/c-program-to-calculate-the-gcd-of-a-number/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
