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.

Help me with this, you can give me the command correctly, I don't know what is the error of the algorithm please help me

0 votes
asked Mar 10, 2021 by Isaac 1012 (120 points)
int main()
{
    int a,b,c;
    printf("Ingrese el primer numero:¨);
    scanf(¨%d¨,&a);
    printf("Ingrese el segundo numero:¨);
    scanf(¨%d¨,&b);
    c=a+b;
    return 0;
}

1 Answer

+1 vote
answered Mar 15, 2021 by Peter Minarik (86,640 points)

Your problem is that you copied this code from somewhere and hence, instead of using the ASCII double quotes (") you used some fancy quote marks (e.g. from MS Word), which means nothing to the compiler. You really have to use the ASCII double quotes.

Please, see the fixed code below:

#include <stdio.h>

int main()
{
    int a,b,c;
    printf("Ingrese el primer numero:");
    scanf("%d",&a);
    printf("Ingrese el segundo numero:");
    scanf("%d",&b);
    c=a+b;
    printf("a + b = %d\n", c);
    return 0;
}
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.
...