Kamis, 24 Maret 2016

Mencari Nilai






Mencari Nilai:

 #include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv) {
        int nilai;
    cout<<"masukan nilai =";cin>>nilai;
    if(nilai>=80&&nilai<=100)
    cout<<"A";
    else if(nilai>=65&&nilai<=79)
    cout<<"B";
    else if(nilai>=55&&nilai<=64)
    cout<<"C";
    else if(nilai>=30&&nilai<=54)
    cout<<"D";
    else
    cout<<"E";
    return 0;
}



Program Raptornya:

Terimakasih😊













Unknown

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 komentar:

Posting Komentar