Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

conditional logic if-else use in c

#include <stdio.h>   
 int main()   
 {   
     int n;   
     n = 10;   
     if(n >= 0) {   
         printf("The number is positive
");   
     }   
     else {   
         printf("The number is negative
");   
     }   
     return 0;   
 }  
Source by cpbook.subeen.com #
 
PREVIOUS NEXT
Tagged: #conditional #logic
ADD COMMENT
Topic
Name
2+4 =