You are on page 1of 1

// ConsoleApplication11.cpp : Defines the entry point for the console application.

//

#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;

int main()
{
float A;
float B;
float C;
float per;

cout << "please enter value of first subject" << "\n";


cin >> A;
cout << "please enter the value of the second subjet" << "\n";
cin >> B;
C = B / A;
per = C * 100;
cout << per << "\n";
system("pause");

return 0;
}

You might also like