answersLogoWhite

0

yo yo as

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

Wap to take a number from the user and print its square if the number is even otherwise incase of odd number print its cube?

#include<iostream> using namespace std; int main(void) { int a; int b; { cout << "Please enter a number: "; cin >> a; b = a%2 == 0 ? a*a : a*a*a; cout << "The result is: " << b << endl; } return 0; } - - - //Alternative #include<iostream> #include<cmath>


WAP to enter temperature in centigrade Degree and convert it into Fahrenheit Degree using c?

# include # include { float centi;farha; clrscr( ); print f ("Enter the temp); scan f ("%f"&centi); farha(a*centi)3/5; print f("farhanhite=%2f"farhan); getch( ); }


Wap to represent a pascal triangle?

it's easy i am assuming you know programming as you are asking a question of a high standard. The formula for any number in the traingle is (r-1)!/[(c-1)!*(r-c)!] where r represents row number and c represents column number. Note:- '!' sign means factorial. Eg:- 5! = 5 x 4 x 3 x 2 x1.


How long has art existed?

400-500 years now for 2009 duby duby doo wap Phineas and ferb = Candice and perr y


WAP to draw a circle using midpoint circle algorithm?

The midpoint circle algorithm is an efficient way to draw a circle using only integer arithmetic. It works by calculating the points in one octant of the circle and then using symmetry to determine the other points. The algorithm starts at the circle's perimeter and uses the decision parameter to determine whether to move in the y-direction while iterating through the x-values. This method reduces the number of computations and avoids floating-point operations, making it suitable for raster graphics.

Related Questions

How do you solve this program wap to print sum of a digit of an inputed number?

wap to print all the arnstrong no. between 100&1000


WAP To print the squares of all even numbers from 1 to 20?

CLS PRINT "PROGRAM: Print squares of all even numbers from 1 to 20" PRINT PRINT "number", "squared" PRINT FOR number% = 1 TO 20 IF number% MOD 2 = 0 THEN PRINT number%, number% * number% END IF NEXT END


Wap to take a number from the user and print its square if the number is even otherwise incase of odd number print its cube?

#include<iostream> using namespace std; int main(void) { int a; int b; { cout << "Please enter a number: "; cin >> a; b = a%2 == 0 ? a*a : a*a*a; cout << "The result is: " << b << endl; } return 0; } - - - //Alternative #include<iostream> #include<cmath>


WAP to print even numbers upto 20 and find the total in Q-Basic?

cls total=0 for i=0 to 20 step -2 total = total+i print i ; next i print "total is " total end send by tripti


Wap to calculate reverse of a number without loops?

Main(include.h)


WAP to reverse the supplied number without using string manipulators in qbasic?

10. input number 20. let accumulator = 0 30. if number > 0 then goto 80 40. let digit = number % 10 50. let accumulator = accumulator * 10 + digit 60. let number = number / 10 70. goto 30 80. print accumulator


WAP to print in c program in 0 10 010kzvcs?

#include <stdio.h> int main (void) { puts ("in 0 10 010kzvcs"); return 0; }


What is a wap code?

Samsung s5233 wap code


How do i get wap on my phone?

To get wap on your mobile phone, simply get in touch with your service provider. The provider will give you instructions on how to get wap.


What is the full form of wap?

WAP is Wireless Application Protocol


What has the author Dewi Soyusiawaty written?

Dewi Soyusiawaty has written: 'Natural language translator Inggris-Indonesia-Jawa berbasis WAP'


What are the feature of WAP?

What are the feature of WAP?"