Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions azure-pipelines-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <stdio.h>

int main() {
// Declare variables to store the numbers
double num1, num2;

printf("Enter the first number: ");
// Read the first number from the user
scanf("%lf", &num1);

// Prompt the user to enter the second number
printf("Enter the second number: ");
// Read the second number from the user
scanf("%lf", &num2);

// Add the numbers
double sumResult = num1 + num2;

// Display the result
printf("The sum of %.2lf and %.2lf is: %.2lf\n", num1, num2, sumResult);

return 0;
}