Advertisement

C# practice questions for BCA 5th semester

 

BCA 5th semester DotNet technology

DotNet Technology - BCA 5th Semester


Write a program for the following questions.


Conditional Statement 


  1. WAP to input the number and display their sum.


  1. WAP to input a number and display it as even or odd.


  1. WAP to input 3 numbers and display the largest among the numbers.


For Loop


  1. WAP to input 10 numbers and display their sum.


  1. WAP to input a number and display Its factorial.


  1. Display the following series.


  1. 1, 2, 3, 4, …………, 100


  1. 1, 3, 5, 7, …………, 100


  1. 1, 4, 9, 16, ……….., 100


      4.  WAP to input a number and display whether it is a prime number or not.


While Loop


  1. WAP to input a number and display the sum of digits.


  1. WAP to input a number and show its reverse.


  1. WAP to input a number and display whether it is palindrome or not.


  1. WAP to input a number and display whether it is Armstrong or not.


  1. WAP to input a number and display the number of a digit in it.

Post a Comment

0 Comments