Answer:
d, brainly wants this to be long so hdjddjd
Answer:
// C program to find sum and average of 10 elements.
#include <stdio.h>
// main function
int main(void) {
// array
double arr[10];
// variables
double average,sum=0;
int i;
// ask to enter 10 elements of the array
printf("Enter 10 elements of the array:");
for(i=0;i<10;i++)
{
// read elements of the array
scanf("%lf", &arr[i]);
// calculate the sum of elements
sum=sum+arr[i];
}
// fint the average
average=sum/10;
// print sum
printf("Sum of 10 elements of the array is:%f ",sum);
// print average
printf("\nAverage of 10 elements of the array is:%f ",average);
return 0;
}
Explanation:
Create an array of size 10.Then read 10 values from user and store them into array.Find the sum of 10 elements of the array and assign it to variable "sum". Find the average by dividing sum with 10.Print the sum and average.
Output:
Enter 10 elements of the array:3 2 4 5 1 4 8 9 12 10
Sum of 10 elements of the array is:58.000000
Average of 10 elements of the array is:5.800000
Answer:
The attack is known as SQI Injection attack.
Explanation:
SQI injection usually exploit some security lapse in an application software for it to be able to work. It usually attack websites and mostly known as attack vector but may equally attack any type of SQL database of a company. These attacks allow attackers to steal and use identity, tamper with existing data on a system or website of the company or allow the complete disclosure of all data on the system. SQL Injection can also destroy the data or make it otherwise unavailable. Most importantly, it can become administrators of the database server or even cause reconciliation issues for such company transactions (e.g banks) such as voiding transactions or changing balances.