Find the output of the following program.
#include<stdio.h>
void main()
{
int y=10;
if(y++>9 && y++!=10 && y++>11)
printf("%d", y);
else
printf("%d", y);
}
#include<stdio.h>
void main()
{
int y=10;
if(y++>9 && y++!=10 && y++>11)
printf("%d", y);
else
printf("%d", y);
}
A. 11
B. 12
C. 13
D. 14
E. Compilation error
Answer: Option C
WHAT IS THIS PROGRAMS OUTPUT
CLS
W$="PATTERN"
FOR I=1 TO 7 STEP 1
PRINT LEFT$(W$,I)
NEXT I;
END
#include
#include
main()
{
float a,s,sq;
printf ("/n enter the number");
scanf ("%f", &a);
s=a8a;
sq=srrt(a);
printf ('/n square= %f," s);
printf ("/n square root =%f," sq);
}
What is program output
#include
void main 0 {
int i = -1, j = -1, k = 0, I = 2, m;
m = i++ &&j++ &&k++ ll 1++;
printf (" Vo dLo d%o dvo dLo d",i j,k,l,m) ;
l
Cls
Input "Enter any 3 numbers ";N
IF SGN (N)=1. THEN
PRINT N; "is the odd number"
ELSE
PRINT N; "is null or zero number"
ELSE IF
END
how?
how