Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
localdmluser authored and localdmluser committed Jan 30, 2024
1 parent 7dd52b1 commit 936aac2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Binary file added WU2dir/WU2
Binary file not shown.
17 changes: 17 additions & 0 deletions WU2dir/WU2.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <stdio.h>

int main(int argc,char ** argv){
double num1,num2; // initialize numbers
// ask for input from the user
printf("Enter first number: ");
scanf("%lf",&num1);
printf("Enter second number: ");
scanf("%lf",&num2);

// print calculations
printf("Sum: %lf\n",(num1+num2));
printf("Difference: %lf\n",(num1-num2));
printf("Product: %lf\n",(num1*num2));
printf("Quotient: %lf\n",(num1/num2));
return 0;
}

0 comments on commit 936aac2

Please sign in to comment.