Share your repls and programming experiences

← Back to all posts
scanf
security0110 (0)

#include <stdio.h>

int main(void) {
int n1;
int n2;
int result;
printf("Please Enter A namber: ");
scanf("%d",&n1);
printf("Please Enter Another Namber: ");
scanf("%d",&n2);
result = n1 + n2;
printf("Your Result Is: ");
printf("%d\n", result);
return 0;
}