Skip to main content

Posts

Featured

Mcs011 1st semester Quetion Answer 2019-20

Q1.Write the following functions that: a) Request the user for two integers and outputs them and their sum. b) Request the user for two integers and outputs their remainder after division. c) Request the user for two floats and outputs their product. d) Request the user for a word and prints it twice on the same row.  Write a C (main) program to provide the above functions as options to the user using switch statement and performs the functions accordingly.  Ans: - #include <stdio.h> //header file it take standered input out #include<string.h> / /header file it allow string data.  #include<conio.h> //header file it take console input out void main() //main Function {                  //program Open int a,b,c,d; string s;    //declare variable clrscr(); //clean the console Window printf("Select A Option To Process\n1. Sum to digit.\n2. Show Reminder of two digit.\n3. show Product of Two Value.\n4. To Twice A Word.");   //print the message  s

Latest Posts

MerryChristmas

Reverse a Number in .Net

A Program To Add 2 numbers in Dot net

A Best Simple Programming Way to Understand program in Dot net