solved a1p3 and submitted assignment

This commit is contained in:
JISAUAY committed 2025-01-28 15:53:43 -06:00
1 parent 32b04527ab
commit 2b1b79a3c7
10 files changed
+107 -195

No files matched your search

+19 -19
View File
@@ -1,19 +1,19 @@
#include <cstdio>
#include <iostream>
int main() {
while (1) {
int n;
std::scanf("%d", &n);
if (n == 42) {
break;
}
std::cout << n << std::endl;
}
return 0;
}
#include <cstdio>
#include <iostream>
int main() {
while (1) {
int n;
std::scanf("%d", &n);
if (n == 42) {
break;
}
std::cout << n << std::endl;
}
return 0;
}
+12 -12
View File
@@ -1,12 +1,12 @@
def main():
while True:
n = int(input())
if n == 42:
break
print(n)
if __name__ == '__main__':
main()
def main():
while True:
n = int(input())
if n == 42:
break
print(n)
if __name__ == '__main__':
main()