Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
#include stdio.h>
#include conio.h>
#include string.h>
void main()
{
int i=0,j=0,k=0,l=0;
int a[3][3],temp[3][3];
clrscr();
for(i=0;i<3;i++)
for(j=0;j<3;j++)
a[i][j]=0;
temp[i][j]=0;
}
} i=0;j=0;
printf("ENTER THE VALUE %d %d: ",i+1,j+1);
scanf("%d",&a[i][j]);
for(k=0;k<3;k++)
for(l=0;l<3;l++)
if(a[i][j] { temp[i][j]=a[i][j]; a[i][j]=a[k][l]; a[k][l]=temp[i][j]; } } } } } printf("\nNO ARE IN ACCENDING ORDER"); printf("\n"); for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t",a[i][j]); printf("\n"); } getch(); } OUTPUT : ENTER THE LIMIT OF ELEMENTS: 3 ENTER THE NO 1 : 2 ENTER THE NO 2 : 3 ENTER THE NO 3 : 4 THE EVEN NO.S ARE 2 THE ODD NO.S ARE 1 THE TOTAL OF EVEN NO IS 6 THE TOTAL OF ODD NO IS 3 THE AVG. OF ALL EVEN NO IS 3.0000 THE AVG. OF ALL ODD NO IS 3.0000
temp[i][j]=a[i][j];
a[i][j]=a[k][l];
a[k][l]=temp[i][j];
printf("\nNO ARE IN ACCENDING ORDER");
printf("\n");
printf("%d\t",a[i][j]);
getch();
OUTPUT :
ENTER THE LIMIT OF ELEMENTS: 3
ENTER THE NO 1 : 2 ENTER THE NO 2 : 3
ENTER THE NO 3 : 4
THE EVEN NO.S ARE 2 THE ODD NO.S ARE 1
THE TOTAL OF EVEN NO IS 6
THE TOTAL OF ODD NO IS 3
THE AVG. OF ALL EVEN NO IS 3.0000
THE AVG. OF ALL ODD NO IS 3.0000
redirection in c++
Write a function that takes in a radius and evenly covers the screen with circles of that radius. Don't attempt to draw any circles that are completely off the screen.
wap to cheak if a number is palindrom
Friend classes are used when two or more classes are designed to work together and require access to each other's execution in ways that the rest of the world shouldn't be permitte
what is local and global variable?give me some example to understand better
#write code for rotation in c
Problem 1. Explain Break and continue statements in C++. Explanation of Break statement Explanation of Continue statement 2. Explain concepts of constructors and
Program is to search for a given character in a string: Program is to search for a given character in a string and print point of match char *stsearch(char *string, char sea
Explain the Bit Wise Operations? C language in particular was created to make it easier to write operating systems. The objective was to have a language that provided excellent
Write a c++ program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points c
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd