Advertisement
Guest User

Untitled

a guest
Apr 8th, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. void simpleScanner(char *brackets){
  5.  
  6. }
  7.  
  8. int main(){
  9.     char array[100];
  10.     int i;
  11.     for(i= 0; i<99; i++){
  12.         scanf("%c", &array[i]);
  13.         if(array[i]=='\n')
  14.             array[i]=='\0';
  15.             i=98;
  16.     }
  17.     i=0;
  18.     printf("%s lols\n ",array);
  19.     while(array[i]!='\n'){
  20.         printf("%c", array[i]);
  21.         i++;
  22.         break;
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement