Breaking News
recent

Program Menampilkan Nilai A B C

#include <iostream>

using namespace std;

int main()
{
    float nilai;

    cout << "Masukan nilai ujian :\n";
    cin >> nilai;

    if(nilai>=90)

    cout << "\nA\n";
    else

    if (nilai>=80)

    cout << "\nB\n";
    else

    if (nilai>=70)
    cout << "\nC\n";
    else

    if (nilai>=60)
    cout << "\nD\n";
    else

    if (nilai<60)
    cout << "\nE\n";

    return 0;
}

Unknown

Unknown

No comments:

Post a Comment

Powered by Blogger.