You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vpriyapm In the add.c file we can declear the value perdefined so it will be easy to be output
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
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;
@vpriyapm In the add.c file we can declear the value perdefined so it will be easy to be output
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
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);
}
`
the link for the vs code
https://vscode.dev/github/vpriyapm/Evaluation_final/blob/main
@vpriyapm
The text was updated successfully, but these errors were encountered: