#include <stdio.h>
struct student {
char firstName[50];
int roll;
float marks;
} s[5];
int main() {
int i;
printf("Enter information of students:\n");
// storing information
for (i = 0; i < 5; ++i) {
s[i].roll = i + 1;
printf("\nFor roll number%d,\n", s[i].roll);
printf("Enter first name: ");
scanf("%s", s[i].firstName);
printf("Enter marks: ");
scanf("%f", &s[i].marks);
}
printf("Displaying Information:\n\n");
// displaying information
for (i = 0; i < 5; ++i) {
printf("\nRoll number: %d\n", i + 1);
printf("First name: ");
puts(s[i].firstName);
printf("Marks: %.1f", s[i].marks);
printf("\n");
}
return 0;
}
#◌⑅⃝●♡⋆♡Nåmřāthā ♡⋆♡●⑅◌
Answer:
<u>In physics</u>, efficiency is a measure of how much energy is conserved in a process.
<u>In programming</u>, efficiency is directly linked with the speed of runtime execution for software and algorithmic efficiency.
In this comparison, both meanings try to measure the quality of the processes and have formulas to detect this efficiency.
Both meanings have different formulas to define the measures, Big O notation for programming and percentage of energy output divided by energy input for physics. Furthermore, in physics is not possible to get 100% efficiency, but it is possible for programming to have O(1) of efficiency.
names, phone numbers, address for sure, emails, and etc..