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 13:37:13
- Judged At
- 2024-11-11 03:46:36
- Judged By
- Score
- 100
- Total Time
- 1ms
- Peak Memory
- 332.0 KiB