Posts

sc

1. 3,4,5,6A represent it in array   code:-  array = [3, 4, 5, "6A"] for element in array:     print(element) 2.  show * in array   code:-   #include <stdio.h> int main() {     int array[] = { 1, 2, 3, 42};     printf("%d\n", array[0]);     printf("%d\n", array[1]);     printf("%d\n", array[2]);     printf("%c\n", array[3]);     return 0; } 3.  Calculate the no. of numerical digits in a string. code:-  s tring = "Madhav 9034, I have 34 Rubbe4." count = 0 for char in string:     if char.isdigit():         count = count + 1 print("Number of numerical digits:", count) or   def count_digits(input_string):     count = sum(1 for char in input_string if char.isdigit())     return count if __name__ == "__main__":     user_input = input("Enter a string: ")     digit_count = count_digits(user_input)   ...

DOT NET

  Sr. No. Experiments 1      To find out the sum of digits of a number and also find out its reverse. 2      To print all the prime numbers between two numbers. 3      To find out all the occurrences of a element from a given array. 4      To find out frequency of each digit for a array without using any conditional statement 5      Create a class with followings                - Properties                - Method Overlooking 6      Write a program to implement multilevel inheritance. It should include constructors and method         overriding 7    Create a class Time with data members Hours, Minutes and Second . Overload + >, <, ==, !=         operators 8      Write a program to implement run time polymorphism. 9  ...