Skip to content
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

22bcae13 issue #511

Open
rajproduction opened this issue May 28, 2024 · 1 comment
Open

22bcae13 issue #511

rajproduction opened this issue May 28, 2024 · 1 comment

Comments

@rajproduction
Copy link

rajproduction commented May 28, 2024

@vpriyapm In the add.c file we can declear the value perdefined so it will be easy to be output
Screenshot 2024-05-28 101217
what is the issue ?
the issue in the add.c is that the input is given by the user .
so is the value is perdefined so the output will be fast.
the update code is below image
Screenshot 2024-05-28 104425
the code for add.c program
`#include <stdio.h>

int main() {
int num1, num2, sum;
num1 = 22;
nu2 = 10;
printf("Enter the first number: ");
#no need of this scanf("%d", &num1);

printf("Enter the second number: ");
scanf("%d", &num2);

sum = num1 + num3;

printf("The sum of %d and %d is %d.", num1, num2, sum);

return 0;

}
`
the link for the vs code
https://vscode.dev/github/vpriyapm/Evaluation_final/blob/main
@vpriyapm

@rajproduction
Copy link
Author

rajproduction commented May 28, 2024

if we give the value perdefined so the output will be fast
@vpriyapm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant