Code
#include <stdio.h>
int main() {
int y;
printf(" ");
scanf("%d", &y);
// Checking if the entered number is non-negative
if (y < 0) {
printf("Error\n");
return 1; // Exiting with an error code
}
for (int i = 0; i < y; i++) {
printf("I love programming\n");
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1018 Show your dedication
- Contest
- Brain booster - 1
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2023-12-31 15:47:36
- Judged At
- 2024-11-11 03:45:24
- Judged By
- Score
- 100
- Total Time
- 0ms
- Peak Memory
- 340.0 KiB