Answer:
#include <stdio.h>
int main()
{
int avg = 0;
int sum =0;
int x=0;
/* Array- declaration – length 4*/
int num[4];
/* We are using a for loop to traverse through the array
* while storing the entered values in the array
*/
for (x=0; x<4;x++)
{
printf("Enter number %d \n", (x+1));
scanf("%d", &num[x]);
}
for (x=0; x<4;x++)
{
sum = sum+num[x];
}
avg = sum/4;
printf("Average of entered number is: %d", avg);
return 0;
}
Disk Defragmenter
A disk defragmenter is a utility that reorganizes the files and unused space on a computer's hard disk so that the operating system accesses data more quickly and programs run faster.
Answer:
Popular Electronics is the correct answer.
Explanation:
It is the first magazine that released in the year 1975, Jan. The following magazine is about the initial microcomputer kit which for the Mits Altair.
So, that's why the following answer is not false because it is the first magazine that released the article about the following microcomputer kit that is update on the cover of the magazine.
Answer:
Graphs help scientists make data easy to publish.
Explanation:
Answer:
The function in C is as follows:
#include <stdio.h>
int C_ball(int height){
if(height == 1) {
return 1;}
return (height * height) + C_ball(height - 1);}
int main(){
int n;
printf("Height: ");
scanf("%d",&n);
printf("Balls: %d",C_ball(n));
return 0;
}
Explanation:
The function begins here
#include <stdio.h>
This defines the function
int C_ball(int height){
If height is 1, return 1
<em>if(height == 1) {
</em>
<em> return 1;}</em>
This calls the function recursively
return (height * height) + C_ball(height - 1);}
The main begins here
int main(){
This declares the height as integer
int n;
This prompts the user for the height
<em> printf("Height: ");
</em>
<em> scanf("%d",&n);</em>
This calls the function
printf("Balls: %d",C_ball(n));
return 0;
}