create a C program that displays one z,two y's,three x's
until twenty six A's.
plzz answer i need it tomorrow.
Answer Posted / sujata
int Totchar_count =26;
int cur_postion= 26 ;
int diff=0;
char cur_char ='Z';
do
{
diff = (Totchar_count+1) -cur_postion;
while(diff >=1)
{
printf("%c",&c);
diff--;
}
cur_position--;
cur_char--;
}while(c !='Z'-Totchar_count);
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain how do you print an address?
What is uint8 in c?
What 'lex' does?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
Tell me when would you use a pointer to a function?
Are pointers really faster than arrays?
What are local variables c?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is pre-emptive data structure and explain it with example?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
What does int main () mean?
write a program fibonacci series and palindrome program in c
How can I dynamically allocate arrays?
What does the file stdio.h contain?
Write a code to determine the total number of stops an elevator would take to serve N number of people.