Monday 29 April 2019

first program grade




1
2
3
4
5
6
7
// my first program in C++
#include <iostream>

int main()
{
  std::cout << "Hello World!";
}





#include <iostream>
using namespace std;
int main()
{
int i,j;
cin>>i;
char k;

if(i<=100  && i>=90)
k='A';
if(i<90 && i>=50)
k='B';
if(i<50 && i>=30)
k='C';
if(i<30)
k='D';


cout << "\nplayer Grade  "<< k;
return 0;

}

No comments:

Post a Comment

Directory implementation

The selection of directory-allocation and directory-management algorithms significantly affects the efficiency, performance, and reliabil...