Understand All about Windows 7 Tips and Tricks, Fashion,Technology, Sports, Games,Windows 8 ,Computer Science ,Essay ,Application and more useful content here, Simply to Read and Enjoy it.
Determine whether the number is positive or negative or zero(If Statement).
Main() { int num; printf(“Enter the number\n”); scanf(“%d”,&num); if(num >0) printf(“num is pocitve =%d\n”,num); if(num<0) printf(“num is negative =%d\n”,num); if(num=0) printf(“num is zero =%d\n”,num); getch(); }
No comments:
Post a Comment