Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
sherigar authored Sep 29, 2023
1 parent 192cfb6 commit 64e5ded
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
5 changes: 5 additions & 0 deletions c++/hello_world.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <iostream>
int main() {
std ::cout << "hello world";
return 0;
}
27 changes: 27 additions & 0 deletions c/sum.c
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;
}
1 change: 1 addition & 0 deletions other/js/hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("Hello, World!");
3 changes: 3 additions & 0 deletions python/sub 2 numbers.py
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)

0 comments on commit 64e5ded

Please sign in to comment.