Monday, February 15, 2010

Gay Cruizing Places Hyderabad

. Boolean expression

Well, here I leave a small program that did the kind of language ANSI-C

Description Program: Upon
as data the average of a student in a course, write "Approved" if the average is satisfactory, that is greater than or equal to 7.


# include main () {int x
;
printf ( "Enter the average " )
scanf ("% d", & x);

if ( x> = 7) {printf
( "Approved " )
printf (" \\ n Congratulations!" )


} else {printf
( "Failed " )
printf (" \\ more desire nEchale ")


} getch ();}



And as we can see, we modified and put the condition that if the rating was not equal to or greater than 7, then print "Failed", and an encouraging message "Play it more desire!".

0 comments:

Post a Comment