daily pastebin goal
1%
SHARE
TWEET

??

Makakas Mar 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************************************************************************
  2.  
  3.                             Online C Compiler.
  4.                 Code, Compile, Run and Debug C program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <stdio.h>
  10. #include <string.h>
  11. int main()
  12. {
  13.     char str[100];
  14.     int symbol[10]={0,1,2,3,4,5,6,7,8,9};
  15.     int chisla=0;
  16.     int i,j=0;
  17.     printf("Дана строка: ");
  18.     scanf("%s",&str);
  19.    
  20.  while(i<strlen(str))
  21. {
  22.   if(str>0,str<9)
  23.   chisla=chisla+1;
  24.   i++;
  25. }
  26.  
  27.   printf ("Длина строки <<%s>> - %d символов\n“", str, strlen(str) );
  28.   printf("Наибольшая последовательность из чисел в строке: %d",chisla);
  29.     return 0;
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top