-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample2.c
More file actions
25 lines (21 loc) · 749 Bytes
/
Example2.c
File metadata and controls
25 lines (21 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/********************************************/
/* Kevin Parnell, 6174 */
/* Jan 16, 2018. */
/* Filename: hello.c */
/* This program prints out the message: */
/* Hello World! on the screen. */
/********************************************/
#include <stdlib.h>
#include <stdio.h>
int main()
{
float x, y;
printf("Please enter two float numbers\n");
scanf("%f", &x);
scanf("%f", &y);
printf("The summation is: %f\n", x + y);
printf("The difference is: %f\n", x - y);
printf("The multiplication is: %f\n", x*y);
printf("The division is: %f\n", x/y);
return 0;
}