Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
ria
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> using namespace std; int day =30; int guess; char name [20]; int main() { cout <<"welcome to birthday guessing"<< endl; cout << "enter your name "<< endl; cin >> name; cout << name <<"try to guess the day khawla was born .\n\n"; cin >> guess; if (guess !=day) { cout << "Oops:(... wrong answer,\ntry again :)\n\n" << endl; main(); } else { cout << "correct!"<< guess << " is correct . \nyou won \n"<< endl; cout << "thanks you for playing\n\n" << endl; } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
assaa
pi
dhar1
upper_bound With binary_function Visual Studio 2008 Bug?
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
msvc compile optimization demo...
hangman
Memory example
Guess a number in c++
#27
Please log in to post a comment.