Write a program to produce the following output in c language?
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Answers were Sorted based on User's Feedback
Answer / kalaiarasan
#include<stdio.h>
#include<math.h>
main()
{
unsigned long int k=11;
for(i=0;i<5;i++)
printf("\n%u\n",pow(k,i));
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / rajesh
#include<iostream>
#include<conio.h>
int main()
{
cout<<"\n"<<"\t"<<"\t"<<"\t"<<"\t"<<1<<endl;
cout<<"\t"<<"\t"<<"\t"<<1<<"\t"<<"\t"<<"\t"<<1<<endl;
cout<<"\t"<<"\t"<<1<<"\t"<<"\t"<<2<<"\t"<<"\t"<<"\t"<<1<<endl;
cout<<"\t"<<1<<"\t"<<"\t"<<3<<"\t"<<"\t"<<"\t"<<3<<"\t"<<"\t"<<"\t"<<1<<"\n";
cout<<1<<"\t"<<4<<"\t"<<"\t"<<"\t"<<6<<"\t"<<"\t"<<"\t"<<4<<"\t"<<"\t"<<"\t"<<1;
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 8 No |
What is a nested formula?
What is realloc in c?
Explain what is the difference between functions abs() and fabs()?
to convert a string without using decrement operater and string functions
How can I get random integers in a certain range?
explain memory layout of a C program
Can we increase size of array in c?
how to introdu5ce my self in serco
how to print 212 as Twohundreds twelve plz provide me ans soon
main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }
Write a c code segment using a for loop that calculates and prints the sum of the even integers from 2 to 30, inclusive?
two variables are added answer is stored on not for third variable how it is possible?