Answer to Question #237995 in C for mantosh verma

Question #237995

print the type of gift are giving them .when math and science=45,math=20,science=15 write a program


1
Expert's answer
2021-09-16T13:01:40-0400
#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");
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS