If- else statement Program
#include<stdio.h> void main() { int num; printf("Enter a number="); scanf("%d",&num); if(num%2==0) printf("\n The number is even"); else printf("\n The number is odd"); } …
#include<stdio.h> void main() { float sp,cp,proft,loss; printf("Enter cost price="); scanf("%f",&cp); printf("\nEnter selling price="); scanf("%f",&sp); proft=sp-cp; l…
#include<stdio.h> void main() { //ProgramWithHarsh// //Calculation of gross salary// float bs,hra,da,gs; printf("Enter your basic salary="); scanf("%f",&bs); if(bs>=1500) { hra=5…