#include <iostream> #include <conio> using namespace std; int main() { float percent; cout<<"---aimtocode.com Student Details:--- "; cout<<"Enter your percentage: "; cin>>percent; cout<<"You scored "<<percent<<"%"<<endl; if (percent>=40) { cout<<"Congratulation: You have passed"; } getch(); return 0; }