intmain(void){ // your code goes here intc; chara[20]; printf("Enter"); scanf("%s",&a); c=printf("%-23s",a); printf("%d",c); return0; }
copy #include <iostream> #include <cmath> usingnamespacestd; intmain(){ intn,i,j,m; i=1; j=0; cin>>n; m=n; while((n=n/10)>0)i++; if(i>3&&i<3)j=j+1; cout<<j; if(j<6)cout<<"no"; elsecout<<"yes";
Discover >Sphere Engine API The brand new service which powers Ideone! Discover >IDE Widget Widget for compiling and running the source code in a web browser!