0% found this document useful (0 votes)
5 views

basicc.c

Uploaded by

baoken980
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

basicc.c

Uploaded by

baoken980
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

11/20/24, 9:29 PM basicc.

c/basicc.c

1 /*
2 18 November 2024
3 Jack Nguyen
4 Period 2
5 Basic C
6 */
7
8 #include <cs50.h>
9 #include <stdio.h>
10
11 int main(int argc, char* argv[]){
12 int x = 9 * 10 / 2 - 8;
13 int y = x * 2;
14 int a = x + 60 / 10;
15 int b = y*5-99*2+(x);
16
17 int c = x+y+a+b;
18
19
20 printf("The value of x is: %d\n",x);
21 printf("The value of y is: %d\n",y);
22 printf("The value of a is: %d\n",a);
23 printf("The value of b is: %d\n",b);
24 printf("The value of c is: %d\n",c);
25 }
26
27

127.0.0.1:41035/d2f9321a-5f3e-4e19-bc18-39f3de749699/ 1/1

You might also like