write c++ program asks student to enter his mark, then checks if student passed of failed and print result


write c++ program asks student to enter his mark, then checks if student passed of failed and print result

الأجوبة

ابحث عن مسائل برمجة سي بلس بلس | C++ programming بالانجليزي

#include <iostream>

using namespace std;

int main()
{
int mark;
  cout<<"enter your mark:";
  cin>>mark;
  if(mark>=60)
  cout<<"pass";
  else cout<<"fail";
return 0;
}

محتاج مساعدة؟ تواصل مع مدرس اونلاين الان!