Answer:
scanf("%d %lf %c", &age, &pay, §ion);
Explanation:
To read the value in c program, the instruction scanf is used.
To read the integer value, use the %d format specifier in the scanf and corresponding variable name age with ampersand operator.
To read the double value, use the %lf format specifier in the scanf and corresponding variable name pay with ampersand operator.
To read the character value, use the %c format specifier in the scanf and corresponding variable name section with ampersand operator.
Answer:
patent
Explanation:
A patent is an intellectual property, with this legal protection, we can exclude to use, sell, and importation of an invention for a limited period of years, but we must do an enabling public disclosure of the invention or discovery, it is a requirement of the patent law, a patent is considered an advantage in the industries world.
Answer:
Explanation:
The following code is written in Java and is a function/method that takes in an int array as a parameter. The type of array can be changed. The function then creates a counter and loops through each element in the array comparing each one, whenever one element is found to be a duplicate it increases the counter by 1 and moves on to the next element in the array. Finally, it prints out the number of duplicates.
public static int countDuplicate (int[] arr) {
int count = 0;
for(int i = 0; i < arr.length; i++) {
for(int j = i + 1; j < arr.length; j++) {
if(arr[i] == arr[j])
count++;
}
}
return count;
}
Explanation:
6* 49 because you multiply the number of dots in the first figure by 49