What should be done.
Enter an array from the keyboard, perform data transformations, display the array using the printf () formatted output function. Write a program that displays the minimum element of an array of integers entered from the keyboard. Two-dimensional array of real numbers.
So now the program code itself, which I get, but the array does not appear on the screen + the whole loop does not seem to be true either:
#include "stdafx.h" #include <stdio.h> #include <math.h> #include <clocale> #include <memory.h> #include <stdlib.h> #include <time.h> // Π Π°Π±ΠΎΡΠ° ΡΠΎ ΡΡΡΠΎΠΊΠ°ΠΌΠΈ #include <string.h> // ΠΠΈΠ±Π»ΠΈΠΎΡΠ΅ΠΊΠ° ΡΠ»Π΅Π΄ΡΡΠ°Ρ Π·Π° Π²ΡΠ΄Π΅Π»Π΅Π½ΠΈΠ΅ΠΌ ΠΏΠ°ΠΌΡΡΠΈ #define _CRTDB_MAP_ALLOC #include <crtdbg.h> int _tmain(int argo, _TCHAR * argv[]) { // Π€ΡΠ½ΠΊΡΠΈΡ Π½Π°Ρ
ΠΎΠ΄ΡΡΠ°Ρ Π²ΡΠ΅ ΡΡΠ΅ΡΠΊΠΈ ΠΏΠ°ΠΌΡΡΠΈ _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); // Π€ΡΠ½ΠΊΡΠΈΡ ΠΎΡΠ²Π΅ΡΠ°ΡΡΠ°Ρ Π·Π° ΡΡΡΡΠΊΠΈΠΉ ΡΠ·ΡΠΊ setlocale(LC_ALL, "Russian"); setlocale(LC_ALL, "rus"); srand(time(NULL)); printf("ΠΡΠΎΠ³ΡΠ°ΠΌΠΌΠ° Π΄Π»Ρ Π²ΡΡΠΈΡΠ»Π΅Π½ΠΈΡ ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡΠ½ΠΎΠ³ΠΎ ΡΠ»Π΅ΠΌΠ΅Π½ΡΠ° ΠΌΠ°ΡΡΠΈΠ²Π° n"); printf(" Π²Π²Π΅Π΄Π΅Π½Π½ΠΎΠ³ΠΎ Ρ ΠΊΠ»Π°Π²ΠΈΠ°ΡΡΡΡn"); float a[3][3] = { 0 }; float b; for (int i = 0; i < 3; i = i + 1) { for (int j = 0; j < 3; j = j + 1) { printf("ΠΠ²Π΅Π΄ΠΈΡΠ΅ ΡΠ»Π΅ΠΌΠ΅Π½Ρ ΠΌΠ°ΡΡΠΈΠ²Π°\n"); scanf("%f", &b); a[i][j] = b; } printf("%f\n", a[i][j]); } return 0; }
A lot of superfluous. Do not pay attention: C + + began to study three days ago.