print the type of gift are giving them .when math and science=45,math=20,science=15 write a program
#include<stdio.h>
int main(){
int math, science;
printf("Enter the mark for maths\n");
scanf("%d",&math);
printf("Enter the mark for science\n");
scanf("%d",&science);
if(science== 45 && math== 45){
printf("Science= %d, mathe= %d", 15,20);
}
else{
printf("No gift");
}
}
Comments
Leave a comment