Please open Telegram to view this post
VIEW IN TELEGRAM
π8π4π₯3
// C++ program to calculate total, average and
// percentage marks of all subjects
#include <iostream>
using namespace std;
int main(){
int subjects, i;
float marks, total=0.0f, averageMarks, percentage;
// Input number of subjects
cout << "Enter number of subjects\n";
cin >> subjects;
// Take marks of subjects as input
cout << "Enter marks of subjects\n";
for(i = 0; i < subjects; i++){
cin >> marks;
total += marks;
}
// Calculate Average
averageMarks = total / subjects;
// Each subject is of 100 Marks
percentage = (total/(subjects * 100)) * 100;
cout << "Total Marks = " << total;
cout << "\nAverage Marks = " << averageMarks;
cout << "\nPercentage = " << percentage;
return 0;
}
// percentage marks of all subjects
#include <iostream>
using namespace std;
int main(){
int subjects, i;
float marks, total=0.0f, averageMarks, percentage;
// Input number of subjects
cout << "Enter number of subjects\n";
cin >> subjects;
// Take marks of subjects as input
cout << "Enter marks of subjects\n";
for(i = 0; i < subjects; i++){
cin >> marks;
total += marks;
}
// Calculate Average
averageMarks = total / subjects;
// Each subject is of 100 Marks
percentage = (total/(subjects * 100)) * 100;
cout << "Total Marks = " << total;
cout << "\nAverage Marks = " << averageMarks;
cout << "\nPercentage = " << percentage;
return 0;
}
π8β€2π₯2
Please open Telegram to view this post
VIEW IN TELEGRAM
β€βπ₯12β€3
This media is not supported in your browser
VIEW IN TELEGRAM
Perfect answer of Why should we hire you ??
π14π1
Please open Telegram to view this post
VIEW IN TELEGRAM
β€βπ₯14π₯1π1
This media is not supported in your browser
VIEW IN TELEGRAM
Be careful
And pls share this..π
And pls share this..π
π5β€βπ₯3