Untitled
unknown
plain_text
10 months ago
335 B
3
Indexable
#include <stdio.h>
int main()
{
int num1, num2, sum;
// Asking for user input
printf("Enter the first number: ");
scanf("%d", &num1);
printf("Enter the second number: ");
scanf("%d", &num2);
sum = num1 + num2;
printf("The sum of %d and %d is: %d\n", num1, num2, sum);
return 0;
}Editor is loading...
Leave a Comment