vize final notunu klavyeden girip ortalamayı ve harf karşılığını ekranda gösterme
#include <conio.h>
#include <iostream>
#include <iomanip>
using namespace std;
void hesapla(int v,int f){
int hesap;
hesap=(v*0.4)+(f*0.6);
if(hesap>0&&hesap<50){
cout<<setw(8)<<hesap<<setw(8)<<"DD";}
else if(hesap>50&&hesap<70){
cout<<setw(8)<<hesap<<setw(8)<<"CC";}
else if(hesap>70&&hesap<86){
cout<<setw(8)<<hesap<<setw(8)<<"BB";}
else if(hesap>86&&hesap<101){
cout<<setw(8)<<hesap<<setw(8)<<"AA";}
}
int main()
{ int v,f;
cout<<"Vize notunu gir";
cin>>v;
cout<<"final notunu gir";
cin>>f;
hesapla(v,f);
getch ();
return 0;
}