IGNOU MCS-011 Assignment Solution for 2020-21 | IGNOU Solved Assignment
IGNOU MCS-011 Assignment Solution for 2020-21 | IGNOU Solved Assignment Q1 (10 Marks) Write an algorithm, draw a corresponding flowchart and write an interactive program to convert a decimal number to its hexadecimal equivalent. Source Code: #include<stdio.h> #include<conio.h> void main() { long int dec,r; int i=0,l; char hex[50]; printf("Enter Decimal number\n"); scanf("%ld",&dec); while(dec!=0) { r=dec%16; if(r<10) hex[i++]=48+r; else hex[i++]=55+r; dec=dec/16; } for(l=i-1;l>=0;l--) printf("%c",hex[l]); getch(); } Q2. (10 Marks) Write an interactive C program to find the MINIMUM and MAXIMUM (value) array elements in a given 3X3 matrix. Source Code: #include<stdio.h> #in