Tabliczka mnozenia.pdf

(24 KB) Pobierz
184409330 UNPDF
d:\STUDIA\SEM III\SI\tabliczka mnozenia\...\tabliczka mnozenia\tabliczka mnozenia.cpp
// tabliczka mnozenia.cpp : Defines the entry point for the console application.
//
1
#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
#include <cstdlib>
#include <iostream>
int _tmain( int argc, _TCHAR* argv[])
{
// using namespace std;
int a, b;
cout<< "podaj najmniejsza liczbe" <<endl;
cin>>a;
cout<< "podaj najwieksza liczbe" <<endl;
cin>>b;
cout<< "*\t|\t" ;
for ( int j=a; j<=b; j++)
cout<< j << "\t" ;
cout<< endl;
for ( int j=a; j<=b; j++)
cout<< "---------" ;
cout<< endl;
for ( int i=a; i<=b; i++)
{cout<< i << "\t|\t" ;
for ( int k=a; k<=b; k++)
cout<< k*i << "\t" ;
cout<< endl;
}
_getch();
return 0;
}
184409330.001.png
Zgłoś jeśli naruszono regulamin