Docsity

Different Types Of Programming Structure, Exercises of Maintenance Engineering

Partial preview of the text

Download Different Types Of Programming Structure and more Exercises Maintenance Engineering in PDF only on Docsity!

#include using namespace std; int main() { float s1; float s2; float avg; cout << "enter the marks of first subject"; cin >> s1; cout << "enter the marks of second subject"; cin >> s2; avg = (s1 + s2) / 2; cout << "the average is"; cout << avg; }