kiem tien, kiem tien online, kiem tien truc tuyen, kiem tien tren mang
Saturday, October 11, 2014

viết chương trình c tìm BCNN bội chung nhỏ nhất của 2 hai số a và b nguyên dương

#include<stdio.h>
#include<conio.h>
void main()
{
int a, b, i = 2;
do
{
printf("nhap a>0,b>0\n");
scanf_s("%d%d", &a, &b);
} while (a <= 0 || b <= 0);
while (a%b!=0)
{
a = a / (i - 1)*i; i++;
}
printf("BCNN=%d", a);
_getch();
}

11 Oct 2014

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

domain, domain name, premium domain name for sales

Popular Posts