Rabu, 25 Desember 2019

Program perhitungan nilai c++

Program perhitungan nilai


include<iostream.h>
#include <conio.h>
void main()
{
char nm_mhs[30];
float nilai;
clrscr();
cout<<"Nama mahasiwa : ";
cin>>nm_mhs;
cout<<"Nilai mahasiswa : ";
cin>>nilai;
if (nilai >70)
cout<<" lulus : \n";
else
cout<<"tidak lulus : \n";

}

Tidak ada komentar:

Posting Komentar