Skip to content

Commit

Permalink
upload
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiliitju committed Oct 21, 2023
1 parent 3d3f2d6 commit 8e416e6
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"A. Say Hello With C++","group":"Codeforces - Sheet #1 (Data type - Conditions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/A","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"programmer","output":"Hello, programmer","id":1697874914875}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"ASayHelloWithC"}},"batch":{"id":"539a4044-d8a7-4749-8199-390a892df48d","size":1},"srcPath":"h:\\Github\\Programming\\Codeforce\\A_Say_Hello_With_C.c"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"B. Basic Data Types","group":"Codeforces - Sheet #1 (Data type - Conditions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/B","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"3 12345678912345 a 334.23 14049.30493","output":"3\n12345678912345\na\n334.23\n14049.3","id":1697875251597}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"BBasicDataTypes"}},"batch":{"id":"2d829238-497e-48ac-9828-0c74aead668e","size":1},"srcPath":"h:\\Github\\Programming\\Codeforce\\B_Basic_Data_Types.c"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"C. Simple Calculator","group":"Codeforces - Sheet #1 (Data type - Conditions)","url":"https://codeforces.com/group/MWSDmqGsZm/contest/219158/problem/C","interactive":false,"memoryLimit":256,"timeLimit":1000,"tests":[{"input":"5 10","output":"5 + 10 = 15\n5 * 10 = 50\n5 - 10 = -5","id":1697876283856}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"CSimpleCalculator"}},"batch":{"id":"582a4786-f5f3-467d-bf24-73600fccccad","size":1},"srcPath":"h:\\Github\\Programming\\Codeforce\\C_Simple_Calculator.c"}
9 changes: 9 additions & 0 deletions Codeforce/A_Say_Hello_With_C.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdio.h>
int main()
{
char n[1000];
scanf("%s", n);
printf("Hello, %s", n);

return 0;
}
22 changes: 22 additions & 0 deletions Codeforce/B_Basic_Data_Types.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include <stdio.h>
int main()
{
int a;
long long int b;
char chr;
float d;
double e;
scanf("%d", &a);
scanf("%lld", &b);
scanf("%c", &chr);
scanf("%f", &d);
scanf("%lf", &e);

printf("%d\n", a);
printf("%lld\n", b);
printf("%c\n", chr);
printf("%f\n", d);
printf("%lf\n", e);

return 0;
}
11 changes: 11 additions & 0 deletions Codeforce/C_Simple_Calculator.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d", &a, &b);
printf("%d + %d = %d\n", a, b, a + b);
printf("%d * %d = %d\n", a, b, a * b);
printf("%d - %d = %d\n", a, b, a - b);

return 0;
}

0 comments on commit 8e416e6

Please sign in to comment.