Deutsch
Telegram

Nachricht#include <iostream>

5. Juli 2024
4
#include <iostream> using namespace std; int main() { float x[9][9], s = 0.0; for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { x[i][j] = i * 9 + j; } } cout << "Berilgan matritsa:" << endl; for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { cout << x[i][j] << "\t "; } cout << endl; } cout << endl; s = 0.0; for (int i = 0; i < 9; ++i) { s += x[0][i]; s += x[8][i]; if (i != 0 && i != 8) { s += x[i][0]; s += x[i][8]; } } cout << "a shakl natijasi = " << s << endl; s = 0.0; for (int i = 0; i < 9; ++i) { s += x[i][i]; s += x[i][8 - i]; } cout << "b shakl natijasi = " << s << endl; s = 0.0; for (int i = 1; i < 8; ++i) { for (int j = 0; j < 9; ++j) { if (j < i || j > 8 - i) { s += x[i][j]; } } } cout << "d shakl natijasi = " << s << endl; s = 0.0; for (int i = 0; i < 9; ++i) { for (int j = 0; j < 9; ++j) { if (abs(i - 4) + abs(j - 4) <= 4) { s += x[i][j]; } } } cout << "e shakl natijasi = " << s << endl; return 0; }

In der Nähe im Feed

ZZafar Ziyatov👍44Foto
diese Nachricht
MMalikaDateiMMalikaIkkitasni hqm 25 chsni
CC++ vs PythonC++ vs Python@cpp_vs_python · Gruppe · Technik
114Mitglieder39 409Nachrichten im Index
Community-Feed In Telegram öffnen

Ein offener öffentlicher Feed aus dem Suchindex ChatCrawler — „Google für das öffentliche Telegram“; wird aktualisiert, während die Community gecrawlt wird. Zeiten in UTC.

Nur öffentliche Inhalte, offizielle Telegram-API. Über uns · FAQ · Grenzen des Index · Seite entfernen · Katalog · Suche · So zählen wir