#include "stdio.h"main(){char c;int letters=0,space=0,digit=0,others=0;printf("please input some characters\n");while((c=getchar())!='\n'){if(c>='a'&&c<='z'||c>='A'&&c<='Z')letters++;else if(c== ' ')space++;else if(c>='0'&&c<='9')digit++;elseothers++;}printf("all in all:ch...
#include <stdio.h>void main (){ int x,y,z,a; for(a=101;a<1000;a++) { x=a/100; y=(a/10)%10; z=a%10; if(a==x*x*x+y*y*y+z*z*z) { printf("%d\n",a); } }} /*153 370 371 407*/
main()
{
int i ,x;
printf("enter a number :");
scanf("%d",&x);
for(i=2;i<x;i++)
{
if(x%i==0)
break;
}
if(i==x)
printf("yes\n");
else
printf("no\n");
}
#include <stdio.h>void main(){ float a,b,c,e,g,h,j; int i; scanf("%f",&a); b=a*100; c=b+0.5; g=(int)c; h=g/100; printf("%f",h);
}