Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problema Siruri
#include <iostream> #include <string.h> using namespace std; char x[101]; int main() { int i,nr=0; bool numarIntreg; while(cin>>x) { numarIntreg=true; for(i=0;i<strlen(x);i++) { if((x[i]<'0')||(x[i]>'9')) numarIntreg=false; } if(numarIntreg) nr++; } cout<<nr; return 0; }
run
|
edit
|
history
|
help
0
override
YesToDafT
Średnia bez zera
Test1
Test constructors and operators
PointClassOpLoad
Shultz_Lab1.CPP
lab17feb22x4B.cpp
NWD
Split in C++ (Simple)