#include <stdio.h>
#include <stdlib.h>
#define N 16
int main() {
int a[N], A, i;
int count=0;
printf("Input A="); scanf ("%i", &A);
printf("Выходные данные ");
for (i=0; i<N; i++) {
int a[] = {5,5,6,6,10,22,22,11,11,53,-3,-3,7,9,1,41};
printf("%d ", a[i]);
}
printf("\nОдинаковые числа ");
for (i=0; i<N; i++) {
if (a[i] == a[i-1] && (i+1== N || a[i+1] != a[i]))
{
count++;
printf("%i ", a[i]);
}
}
printf("\nКоличество = %d", count);
}
Error: Main method not found in class com.andrei.Parts, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application