Home | � | C Structures | � | Simple Structure Program |

Note:- struct is the keyword which we can't use as a variable.

Home | � | C Structures | � | Simple Structure Program |

Note:- struct is the keyword which we can't use as a variable.

Home | � | C Functions | � | Function with argument and return value |

Output is as:

Enter the Two No. for Sum :

10

10

Sum= 20

Home | � | C Functions | � | Function with no argument and return value |

Output is as:

Enter the Two No. for Sum :

10

10

Sum= 20

Home | � | C Functions | � | Function with argument and no return value |

Output is as:

Enter the Two No. for Sum :

10

10

Sum= 20

Home | � | C Functions | � | Function with no argument and no return value |

Output is as:

Enter the Two No. for Sum :

10

10

Sum= 20

Output is as :

Enter the Choice from Four Days...

S = Sunday

M = Monday

T = Tuesday

H = Thursday

S

Sunday

The marks obtained by a student in 5 different subjects are input through the keyboard. The student gets a division as per the following rules:

=> Percentage above or equal to 60 - First Division

=> Percentage between 50 and 59 - Second Division

=> Percentage between 40 and 49 - Third Division

=> Percentage less than 40 - Fail

Method: 1

Method: 2

=> Percentage above or equal to 60 - First Division

=> Percentage between 50 and 59 - Second Division

=> Percentage between 40 and 49 - Third Division

=> Percentage less than 40 - Fail

Method: 1

Method: 2

/*If the ages of Ram, sham and Ajay are input through the keyboard, write a program to determine the youngest of the three*/

**Output is as :**

Enter the three Ages of Ram,Sham and Ajay

14

17

19

Ram is Youngest

Enter the three Ages of Ram,Sham and Ajay

14

17

19

Ram is Youngest

/*Any Number is input through the keyboard. write a program to find out whether It is and Odd Number or Even Number.*/

**Output is as :**

Enter the Number

4

This is Even Number

Enter the Number

4

This is Even Number

Subscribe to:
Posts (Atom)