Write a C++ program that will display if a students is pass or Fail in his exam
in this video explain write a C++ program that checks if student result as pass or fail -
✅ Download Code
-------------------- START -------------------
#include <iostream>
using namespace std;
int main(){
int marks;
cout<<"Enter the Marks: ";
cin>>marks;
// using if statement
if(marks>=50){
cout<<"Student is Pass "<<marks<<endl;
}
else{
cout<<"Student is fail "<<marks<<endl;
}
// Using without If statement
(marks >= 50)? cout<<" Student is pass "<<marks<<endl: cout<<" Student is fail "<<marks;
return 0;
}
------------------- END --------------------
► Shopify For Beginners :- https://youtube.com/playlist?list=PLm...
► Google AdSense :- https://www.google.com/adsense/start/
► Google Cloud Boost Playlist - https://www.youtube.com/playlist?list...
► Google Cloud SQL Playlist:- https://youtube.com/playlist?list=PLm...
► GitHub Playlist - https://youtube.com/playlist?list=PLm...
► Flutter For Beginners :- https://youtube.com/playlist?list=PLm...
► WordPress Free themes For Beginners :- https://youtube.com/playlist?list=PLm...
► HTML & CSS and JAVASCRIPT Projects:- https://youtube.com/playlist?list=PLm...
► C++ For Beginners Playlist :- https://youtube.com/playlist?list=PLm...
► C++ Basic Programs : https://youtube.com/playlist?list=PLm...
🔁 Facebook: https://www.facebook.com/mscubetechco...
🛑 YouTube : https://www.youtube.com/channel/UC1Gb...
#html#css#c++ #c#mscubetech#coding#programming#javascript#mscubetech
0 Comments
Thanks for Supporting me