From a8a85777aacc96179173301e9a75cc5c4e7dbbff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bilal=20Nurullah=20Ko=C3=A7?= <163317119+bnk0dev@users.noreply.github.com> Date: Sat, 29 Jun 2024 01:45:49 +0300 Subject: [PATCH] =?UTF-8?q?Update=20=C3=A7arp=C4=B1m=20tablosu.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Çarpım tablosu projesini daha okunur ve düzenli hale getirdik. --- "\303\247arp\304\261m tablosu.cpp" | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git "a/\303\247arp\304\261m tablosu.cpp" "b/\303\247arp\304\261m tablosu.cpp" index 5e696ff..93317b3 100644 --- "a/\303\247arp\304\261m tablosu.cpp" +++ "b/\303\247arp\304\261m tablosu.cpp" @@ -1,15 +1,28 @@ -#include -using namespace std; +#include +#include + int main() { + // Tablo başlıkları + std::cout << std::setw(4) << "*" << " |"; + for(int j = 0; j < 10; j++) + { + std::cout << std::setw(4) << j; + } + std::cout << std::endl; - for(int i=0;i<10;i++) + // Ayırıcı çizgi + std::cout << std::string(45, '-') << std::endl; + + for(int i = 0; i < 10; i++) { - - for(int j=0;j<10;j++) + std::cout << std::setw(4) << i << " |"; + for(int j = 0; j < 10; j++) { - - cout<