Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int x;
- printf("Vnesete go X:");
- scanf("%d",&x);
- if(x>=1000){
- printf("Preterano pozitiven \n");
- }
- else if(x>=100 || x<999){
- printf("Mnogu pozitiven");
- }
- else if(x<100 || x>0)
- {
- printf("Pozitiven\t");
- }
- else if(x<0 && x>-100)
- {
- printf("Negativen\t");
- }
- else if(x<=-100 || x>-999){
- printf("Mnogu negativen");
- }
- else if(x<=-1000){
- printf("Preterano negativen");
- }
- else { printf("NULA"); }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement