#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e;
clrscr();
if(a>b)
{
if(a>c)
e=a;
else
e=c;
}
else
{
if(b>c)
e=b;
else
e=c;
}
if(e>d)
printf("%d is the greatset",e);
else
printf("%d is the greatest",d);
getch();
}
int i, largest=0;do { scanf ("Enter a number (0 to exit): %d", i); if (i>largest) largest=i; } while (i!=0); printf ("Largest number is: %d\n", largest);
Treemaps are important to programmers because they create a visualization of the program. It displays data in a hierarchy using rectangles that are nested inside of each other.
You may exit a nested loop in Java using a break with a label for the outer loop.
// HI THIS IS MAYANK PATEL /*C Program to find Maximum of 3 nos. using Nested if*/ #include<stdio.h> #include<conio.h> void main() { int a,b,c; // clrscr(); printf("Enter three number\n\n"); scanf("d%d",&a,&b,&c); if(a>b) { if(a>c) { printf("\n a is maximum"); } else { printf("\n c is maximum"); } } else { if(b>c) { printf("\n b is maximum"); } else { printf("\n c is maximum"); } } getch(); }
To write a C++ program to display the student details using class and array of object.
program to find maximum of two numbers using pointers
int i, largest=0;do { scanf ("Enter a number (0 to exit): %d", i); if (i>largest) largest=i; } while (i!=0); printf ("Largest number is: %d\n", largest);
max = a > b ? a : b; max = max > c ? max : c;
A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.
906609=913*993 I found this using a relatively simple computer program that I wrote.
Treemaps are important to programmers because they create a visualization of the program. It displays data in a hierarchy using rectangles that are nested inside of each other.
depends on your answer
998.
You may exit a nested loop in Java using a break with a label for the outer loop.
for (n=1; n<1000; ++n) { for (sum=0, k=1; k<=n/2; ++k) if (n%k==0) sum += k; if (sum==n) printf ("%d\n", n); }
// HI THIS IS MAYANK PATEL /*C Program to find Maximum of 3 nos. using Nested if*/ #include<stdio.h> #include<conio.h> void main() { int a,b,c; // clrscr(); printf("Enter three number\n\n"); scanf("d%d",&a,&b,&c); if(a>b) { if(a>c) { printf("\n a is maximum"); } else { printf("\n c is maximum"); } } else { if(b>c) { printf("\n b is maximum"); } else { printf("\n c is maximum"); } } getch(); }
To write a C++ program to display the student details using class and array of object.