-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDay1.c
More file actions
41 lines (30 loc) · 917 Bytes
/
Day1.c
File metadata and controls
41 lines (30 loc) · 917 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <stdio.h>
int main(){
printf("Hello world");
return 0;
}
/* Arthematic Operations*/
#include <stdio.h>
int main(void){
int a,b;
printf("Please Enter Two number to Add,Sub,Mul,Div");
scanf("%d%d",&a,&b);
printf("The Addition of two Number is : %d \n",a+b);
printf("The Subtraction of two Number is : %d \n",a-b);
printf("The Multiplication of two Number is : %d \n",a*b);
printf("The Division of two Number is : %d \n",a/b);
return 0;
}
// Swaping Numbers
#include <stdio.h>
int main(){
int num1,num2,temp;
printf("Enter Two Number to Swap That Numbers:");
scanf("%d%d",&num1,&num2);
printf("Before Swaping the num1 is %d and num2 %d \n",num1,num2);
temp = num1;
num1 = num2;
num2 = temp;
printf("After Swaping: The num1 is %d and The Num2 is %d ",num1,num2);
return 0 ;
}