Different Types Of Programming Structure, Formulas and forms for Maintenance Engineering. Bahria University
Shehryar-Khan467
Shehryar-Khan467

Different Types Of Programming Structure, Formulas and forms for Maintenance Engineering. Bahria University

DOCX (12 KB)
1 page
40Number of visits
Description
Different Types Of Programming Structure
20 points
Download points needed to download
this document
Download the document
Preview1 page / 1
Download the document

#include <iostream>

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;

}

comments (0)
no comments were posted
be the one to write the first!
Download the document