Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- // int arr[100];
- // int size = 0;
- // void takingInput() {
- // printf("Enter the size of the array\n");
- // scanf("%d", &size);
- // printf("Enter the elements of the array\n");
- // for (int i = 0; i < size; i++) {
- // scanf("%d", &arr[i]);
- // }
- // }
- // void printArray() {
- // printf("Array:\n");
- // for (int i = 0; i < size; i++) {
- // printf("%d ", arr[i]);
- // }
- // printf("\n");
- // }
- // void deleteItem() {
- // printf("Enter the index:\n");
- // int index;
- // scanf("%d", &index);
- // for (int i = index; i < size; i++) {
- // arr[i] = arr[i + 1];
- // }
- // size--;
- // }
- // int main() {
- // takingInput();
- // printArray();
- // int flag = 1;
- // while (flag) {
- // printf("Do you want to delete item?\n");
- // printf("if 'YES' then press 1 otherwise press any key\n");
- // int choise;
- // scanf("%d", &choise);
- // if (choise == 1) {
- // deleteItem();
- // printArray();
- // } else {
- // flag = 0;
- // }
- // }
- // printArray();
- // }
- // int main() {
- // printf("%f\n", pow(2, 3));
- // }
- // #define rep(i, a, b) for (int i = a; i <= b; i++)
- // #define MAX 10000
- // int main() {
- // rep(i, 1, 10) {
- // printf("%d\n", i);
- // }
- // printf("%d\n", MAX);
- // }
- // int main() {
- // FILE *file = fopen("text.txt", "r");
- // char name[100];
- // int id;
- // double result;
- // if (file == NULL) {
- // printf("File does not exist\n");
- // } else {
- // while (fscanf(file, "%s %d %lf", name, &id, &result) != EOF) {
- // printf("%s %d %.2lf\n", name, id, result);
- // }
- // }
- // fclose(file);
- // }
- /// EOF -> End of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement