Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as C++ by registered user xujiayu ( 4 years ago )
#include <stdio.h>
#include <conio.h>
#include <math.h>
/*
* bai 13
 Nhap vao 2 so nguyen duong x & y voi dieu kien x >= 2 va y > x in ra bang cuu chuong 
 tu x den y theo cach trinh bay sau 
 
*/


void nhapdulieu(int &x, int &y)
{
	printf("\nHay nhap so bat dau : ");
	scanf("%d",&x);

	printf("\nHay nhap vao so nhan : ");
	scanf("%d",&y);
}

void lietke(int x , int y)
{
	for (int i = 1; i <= 9; i++)
	{
		for (int j = x; j <= y; j++)
		{
			printf("%d * %d = %2d |",j,i,j*i);
		}
		printf("\n");
	}
}


int main()
{    
	printf("\nlam bang cuu chuong theo y thich cua minh ");
	int a ,b;
	nhapdulieu(a,b);
	lietke(a,b);
	

	getch();
	return 0;



}

 

Revise this Paste

Your Name: Code Language: