Program_08[1]
Program_08[1]
Output:
3. Develop a C program using conditional statement
Input:
#include<stdio.h> #include<stdlib.h>
int main() { float x,y;
printf("OUTPUT:\n");
printf("Enter a number:\n");
scanf("%f",&x); y=(x>2?
2*x+5:1.5*x+3); printf("y=
%.2f",y); printf("\nName: Md Al
Jaber\nRoll:
2101002\nSection: A");
return 0;
}
Output: