Adding Integers and Display the Sum | C Programming Tutorials

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Create a program using pointers that will ask the user to input an integer. Then the program will display the
address of the integer entered by the user. This maam?🥺c++ program po maam

pingolloricahmaem.
Автор

Mam pwde pa help paano clrscr(); sa codeblock :)

argiedionisio
Автор

maam i get error please correct it


#include<stdio.h>
int main()
{
char opr;
int n1, n2;
printf("enter the first number");
scanf("%d", &n1);
printf("%d\n", n1);

printf("enter the second number");
scanf("%d", &n2);
printf("%d\n", n2);

printf("enter the operator number\n");
scanf("%c", &opr);


if(opr == '+')
{
printf("ur sum is n1+n2 \n: %d", n1+n2);
}




return 0;
}

singasong