answersLogoWhite

0


Best Answer

HERE IS THE CODE FOR C++ 2010

#include <stdio.h>

int main ()

{

int i,j;

char prnt='*';

for(j=0;j<10;j++){

for(i=0;i<=j;i++){

printf("%2c",prnt);

}

printf("\n");

}

return 0;

}

 

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the C code for triangle asterisk?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the wildcard characters in C?

The wildcard characters in C programming include the asterisk (*) and the question mark (?). An asterisk stands for any missing number of characters in a string while a question mark represents exactly one missing character.


How do you write a program to make asterisk isosceles triangle using for loop in c plus plus?

* ** *** **** simply use dis... { int x,y; for(x=1;x&lt;=4;x++) { for(y=1;y&lt;=x;y++) printf("*"); printf("\n"); } }


How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.


What does asterisk do in python?

An asterisk is also known as "times by", or "x"


What is the concept of asterisk in c plus plus?

An asterisk in C++, such as int *data, is what's known as a pointer. A pointer is like a regular variable, but instead of holding a value, a pointer holds the memory location of the value. It's a somewhat difficult concept, and you can learn more about it here: See related links section below...

Related questions

Code for creating pascal's triangle in C programming language?

code for creating pascal's triangle in C programming language?


How do you make the password character in Microsoft visual basic c plus plus?

The password character is usually an asterisk. ASCII code 42 (hex:2a).


How do you hide input password in c?

Do not echo the keystrokes, output an asterisk instead.


What is the side c of the triangle?

Side c of a triangle is opposite angle C


What are the wildcard characters in C?

The wildcard characters in C programming include the asterisk (*) and the question mark (?). An asterisk stands for any missing number of characters in a string while a question mark represents exactly one missing character.


Which symbols represent the wildcard characters in Access?

The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.The asterisk * character.


How do ou spell asterisk?

Asterisk


Triangle ABC angle A is 60 what is angle C?

triangle ABC with rigth at C


How do you write a program to make asterisk isosceles triangle using for loop in c plus plus?

* ** *** **** simply use dis... { int x,y; for(x=1;x&lt;=4;x++) { for(y=1;y&lt;=x;y++) printf("*"); printf("\n"); } }


What is the star shaped symbol on a keyboard or keypad called?

An asterisk. asterisk In language it's an asterisk ... but to a programmer it's called a "splat".


HOW MANY SYLLABLES IN ASTERISK?

Asterisk has three syllables.


How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.