Wiki User
∙ 12y agowrite a c program to accept a number and generate a square root cube and exponential values
Wiki User
∙ 12y agoAll number accept 0, SCROLL DOWN
Start accept 7 number calculate sum print sum stop
program that display the area of a circle of a reduce
A sudoku box cannot contain 5 prime numbers, so it is obviously an error. And once you accept that the numbers in the box are simply nonsense numbers, anything is possible.
This is the set of natural numbers.
C programm
Accept 5 numbers in an array and display it.
It is very easy. The program begins here..... /*Program to sum and print numbers without creating variables*/ #include<stdio.h> main() { clrscr(); printf("%d+%d=%d",5,2,5+2); getch(); } /*Program ends here*/ Now just by changing the numbers in the "printf" statement we can add, subtract, multiply and divide the numbers without using variables. Hence the problem is solved..........
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
Accept 3 natural numbers and check whether it firms pythagorean triplet
dim a input a
#include<stdio.h> main() { int num1; int num2; int a; printf("Enter any two numbers :"); scanf("%d%d",&num1,&num2); for(a=num1;num1<=num2;a++) { if ( a % 2 == 1); { printf("%d",a); } } getch(); }
How_do_you_accept_three_numbers_and_check_weather_the_numbers_are_equal_or_unequal_if_it_is_unequal_find_the_greatest_number_among_them
you cant
/*PROGRAM TO ACCEPT TWO NUMBERS FROM THE USER AND PRINT THEIR MULTIPLICATION. */ #include<stdio.h> #include<conio.h> void main() { int a, b, c; // Declaration of Variables. Variables 'a' & 'b' to hold first & second number. And 'c' to hold result. clrscr(); // To clear the output screen every time program is executed. printf("\n Enter the first number : "); scanf("%d", &a); // To accept the first number. printf("\n Enter the second number : "); scanf("%d", &b); // To accept the second number. c = a*b; // Logic to get the product of the entered two numbers. printf("\n Multiplication of %d & %d = %d", a, b, c); // Displaying result. getch(); // To hold the output screen. }
package AddNumbers; public class AddNumbers { public static void main(String[] args) { int Int; int a = 4; int b=5 ; int sum = a + b; System.out.println("Addition of two numbers!"); System.out.println("Sum: " + sum); } }
What is a credit privacy number???