@@heyahey1957 first, define a integer variable (int), say "age", then do this : cin >>age; This will take the integer value of "age" variable from the user.
It's good totorial but it could be awesome if you use cin So that I so a person can enter His or her age directly on black screen and there is no need to change directly from your editer But in all I am really your totorial with your good explanation you makes to be easily understand it, thanks for that god bless you for your time to do this totorial
hlo sir actually i know c programming clearly now started learing c++.. i think c and c++ are same except in some cncepts... so please tell me "by learing which concepts i will be good in c++ now "
+Swathi Bommana may be you forgot to close the previous run(when u run the program, cmd line windows will appear with your output and you have to close that window before running your program again).
can u please prepare a notes on basics and keep it as pdf so that i can quickly revise all the topics at any time , plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
I was watching the video then i paused at 4:11 and started doing by myself and i made this
int age = 17;
cin>>age;
if( age
Cool
You can use else instead of 2nd if statement
Hey bro ı thought to cout the age how ı will want from user 🧐 help please 🙃
By using || or && operators in one if statement You can execute two or more conditions
@@heyahey1957 first, define a integer variable (int), say "age", then do this :
cin >>age;
This will take the integer value of "age" variable from the user.
Amm in school I found it lame but then ended up loving it i actually started doing stuff in my house itself cool man!!! Ty Anil sir
Great man ive learned a lot more videos like this more blessings to ur channel
thankz sir, it ur veduos helped me to understand c++ more efficiently, nd now in a lot more r interested in learning more.
TNx for your good video but I think it will be better if you can use some of the previous code like "cin
ok.
will consider that for upcoming video's
Keep Learning :)
thank u sir it was very help full for my job interview
More User Friendly
#include
int main()
{
int age;
cout>age;
if(age
It is 2017 and i am learning C++ from this course Thanks a lot.
awesome.
Keep Learning:)
long journey before me thanks
2021 here. Thank you Anil sir
Teacher thank you from Turkey 😊👋👋
pleasure :)
It's good totorial but it could be awesome if you use
cin
So that I so a person can enter
His or her age directly on black screen and there is no need to change directly from your editer
But in all
I am really your totorial with your good explanation you makes to be easily understand it, thanks for that god bless you for your time to do this totorial
got it :)
It was very interesting. After making this project i played this game with my family members LOL
thank u.... so much..... good way of learning..
+Deepak Talekar
thanj you :)
Im just in video 15 its fantastic
thank you
keep learning :)
thanks sir,i leran who to write if and else statement..........thanks sir😊😊😊
my pleasure.
keep Learning :)
very interesting ... im learning so fast !!
Thank u sir👍👍
Most welcome
Love it!!!
glad my video helped you :)
Use 'Cin>>' thts good
hlo sir actually i know c programming clearly now started learing c++.. i think c and c++ are same except in some cncepts... so please tell me "by learing which concepts i will be good in c++ now "
How would you use cin >> in this allplication for the user to input their age so you didn't have to change it in the coding ?
Just define an integer variable (int), say "age", then do this :
cin >>age;
By this way, you can just enter the age yourself (by the user).
Nice ❤️
Thank you
Hi.. Sometimes when I try to build and run the programs, the "build and run" option is grayed out. Can you please let me know the reason for this?
+Swathi Bommana
may be you forgot to close the previous run(when u run the program, cmd line windows will appear with your output and you have to close that window before running your program again).
will these programs run on another platforms like turbo c++?? please answer
+Pooja Singh
yes
+LearningLad thanku sir :)
C++ is middle level programming language
sir which software you used for c++???????????
turbo c++
what happens when we execute the below statement
int a=10;
cout
It will print :
10 12 12 10
thank you
+Anthony Carter
pleasure :)
No problem
nice sir
Thank you :)
Sir...I have to write system("pause") to see the execution window in all programs....I m working on visual studio ..can you help to get rid of this?
Tysm
welcome :)
I saw that the "else" wasn't really necessary, you could just use "if" with different statements, no?
yes you can but this video was about if and else.
what if we ask the user to enter their age by themselves?
use a scanf function and read the age to value from the user.
if you dont know about scanf function, then pls watch tutorial on scanf function.
We can't use cin?
Try it bro, I think it works with cin
Let's say you need to be 20 years old in order to vote.
#include
using namespace std;
int main(){
int user_age;
cin>>user_age;
if(user_age
#include
using namespace std;
int main ()
{
int age;
cout age;
if(age < 18)
{
cout
good tutorial
thank you :)
when i tried to build and run nothing happened, plz help me out
+Pooja Singh
can u provide the source code, details about your compiler, ide??
How to on ur pc? wow dude, this explains alot
I tried making a calculator... It was made for all four but i only get answer for for a-b even when i write any number plz help:::
int a, b, c;
cout
can u please prepare a notes on basics and keep it as pdf so that i can quickly revise all the topics at any time , plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
i will try to make it.
tq
why are you use int age =16; ??
couid i use int age;
Some time I saw ,you had given same variables to two different values , why
how to give string input............?
like program should ask me what is your name and i should type it then my name should be displayed
else= Yulse
Hi Anil ÷)
Hi
wooow
sir could you plzz explain for float also know. Not only for integers
i am getting output as 9 10 10 10
i didn't get to know why this is happening like that
Hindi Mai video banaye
LearningLad HIndi mera Hindi Channel Hai
Check kijiye :)
seems like youre a jojo fan
yes yes yes
//Ta~da i made it ...........
#include
using namespace std;
int main()
{
int age ;
cout > age;
if (age