Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How do I set a variable?

+1 vote
asked Mar 5, 2019 by anonymous

2 Answers

0 votes
answered Mar 6, 2019 by n4hd1 (140 points)
to set a veriable do the following (BTW i will be using "word" as a place holder, it can be anything

word=input("you then ask a question here e.g, what is your username")

that is how you set a veriable
commented Mar 6, 2019 by n4hd1 (140 points)
btw thats for python
commented Mar 12, 2019 by xD_emoboi_29
Thats an input u silly boi
0 votes
answered Mar 12, 2019 by JEW
For c++ you want to declare the data type first for example:

if i want a number i would need to use int which would look like

int number = 2;
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...