forked from sherigar/HacktoberFest-2023
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include <iostream> | ||
int main() { | ||
std ::cout << "hello world"; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Programme to find sum using 3 variables and 2 varibles */ | ||
|
||
#include <stdio.h> | ||
|
||
int main(void) { | ||
|
||
//using 3 variables | ||
|
||
int a,b; | ||
printf("enter the value of a=\n"); | ||
scanf("%d",&a); | ||
printf("enter the value of b=\n"); | ||
scanf("%d",&b); | ||
int sum=a+b; | ||
printf("sum = %d",sum); | ||
|
||
//using 2 variable | ||
|
||
int a,b; | ||
|
||
printf("enter the value of a=\n"); | ||
scanf("%d",&a); | ||
printf("enter the value of b=\n"); | ||
scanf("%d",&b); | ||
printf("sum is %d",a+b); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log("Hello, World!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
first_number = int(input("enter first number:")) | ||
sec_number = int(input("enter second number:")) | ||
print(first_number- sec_number) |