NPTEL Problem Solving Trough Programming In C | NPTEL Week 4 Programming Assignment | NPTEL Assignment Solutions

NPTEL Problem Solving Trough Programming In C Week 4 Programming Assignment | NPTEL Swayam Assignment Answers


nptel problem solving through programming in c


Nptel Week 4 Programming Assignment Answers:


Q.1: Write a C Program to Find the Smallest Number among Three Numbers (integer values) using Nested IF-Else statement.

write a C program to find the smallest number among three numbers


Code:





Q.2: Write a program to find whether a given character is a Vowel or consonant. A character is taken as input. The character may be in Upper Case or in Lower Case.

write a program to find whether a given character is a Vowel or consonant



Code:





Q.3: Write a C program to calculate the Sum of First and the Last Digit of a given Number.
For example if the number is 1234 the result is 1+ 4 = 5.

write a C program to calculate the sum of first and the last digit of a given number


Code:





Q.4: Write a C program to find power of a number using while loops. The base number (>0) and exponent (>=0) is taken from the test cases.

write a C program to find power of a number using while loops


Code:





If you are facing any queries regarding this assignment solutions, then please drop comment in comment section.

Post a Comment

0 Comments