#include
using namespace std;
int main () {
int markz = '90';
switch(grade) {
case '5' :
cout << "You scored 5 markz " << endl;
break;
case '7' :
cout << "You scored 7 markz " << endl;
break;
case 'D' :
cout << "You scored 10 markz " << endl;
break;
default :
cout << "You scored 0 markz " << endl;
}
cout << "Your marks is " << markz << endl;
return 0;
}
Code Example |
---|
Cpp :: pca compact trick |
Cpp :: Swift if...else Statement |
Cpp :: pum game in c++ |
Cpp :: Basic Variables Entry C++ Programming |
Cpp :: how can I convert each and every element of string push into set in c++? |
Cpp :: c++ power operator |
Cpp :: 2dvector c++ |
Cpp :: gcd of two number in c++ stl |
Cpp :: C++ initializing a thread with a class/object with parameters |
Cpp :: remove element from vector c++ by index |
Cpp :: beecrowd problem 1001 solution |
Cpp :: how to analyse a poem |
Cpp :: how to implement stack |
Cpp :: random c++ |
Cpp :: priority queue using heap |
Cpp :: program to find third smallest number c++ |
Cpp :: c++ new operator |
Cpp :: imgui menu bar |
Cpp :: C++ mutex header |
C :: boilerplate c |
C :: fahrenheit to celsius formula |
C :: write in file in c |
C :: check if string starts with c |
C :: send http request in C |
C :: C program to display fibonacci serice |
C :: convert number to string c |
C :: c int to string |
C :: round function in c |
C :: pthread c |
C :: merge sort for strings in c |