if else in C

#----------------------#

IF else code 

#---------------------#

x>y ? printf(" ") : printf(" "); 

PROGRAM RUN  SCREEN 

#####################

        [ source code ]

#include<stdio.h>

#include<conio.h>

main()
{
int x;
clrscr();
printf("\nThis program is made by[UB]to check number is positive or not");
printf("                                                     ");
printf("                                                      ");
printf("\nenter a number to check Positive or Non = ");
scanf("%d",&x);
x>0 ? printf("\n[ Positive number ]") : printf("\n[Non positive] ");
printf("                                                          ");
getch();
}

###############################

______________________________

$ all  rights gose to UB codes $



Popular posts from this blog

[2D] ARRAY

Switch in C

2D [STRING] IN C