Display Pattern:
1
2 3
4 5 6 7
8 9 10 11 12 13 14 15
…
Answers were Sorted based on User's Feedback
Answer / gowtham
#include<stdio.h>
#include<conio.h>
main()
{
int n,i,s=0;
clrscr();
printf("Enter n value:");
scanf("%d",&n);
for(i=0;i<=8230;i++)
{
s=s+1;
}
printf("%d",s);
getch();
}
| Is This Answer Correct ? | 3 Yes | 10 No |
Write a simple encryption program using string function which apply the substitution method.
Deriving time complexity of Binary tree and AVL tree, step by step.
How do I store linked list datas into an array?
Write A C++ Program To Input A Number Between 20 To 99 And Display Its Numbername?
write a program using virtual function to find the transposing of a square matrix?
Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37
what is the use of using for loop as "for(;;)"?
Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)
Hello, I am trying to write a program in c++ which accepts month and year from the user and prints the calender. So please tell me the algorithm and what is the calender logic.
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
0 Answers Jomo Kenyatta University,
write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation
how to diplay a external image of output on winxp by using c & c++,