-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added scanf #59
base: master
Are you sure you want to change the base?
Added scanf #59
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code can be altered a little to include multiple variables in a single input statement by using a queue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few changes before we merge this PR - look at the comments
|
||
start | ||
initialise hi=20 | ||
initialise int a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of having 2 lines for initializing and then taking input i feel it is better to do it in the same line.
Eg. input int a;
We then initialize the variable a and take the input. This way we can initialize any type of variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would love to work on this issue after this PR is merged.There is no point of adding features if it is not merge at the end.
Btw, thanx for your suggestion and will look forward for your suggestions and reviews in future.
#Added Inputting a variable functionality
Types of Changes
Please describe the changes you have made, be as descriptive as you can
I have added a feature to input a single variable only.
If user is trying to get input of an uninitialized input then in converted code the variable automatically gets converted to 'float' datatype.
If you have added any new feature please add screenshot of the output, how it has been changed after addition of the new feature
Checklist
Please checkout the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask .Join our gitter channel and feel free to ask.
Thank You !