print the table 5 in loops
Answers were Sorted based on User's Feedback
Answer / kiran
{
int n = 5;
for(i=1;i<=10;i++)
printf("
%d x %d = %d",n,i,n*i);
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / tushar patil
#include<stdio.h>
#include<conio.h>
main()
{
int a=5,i;
printf("TABLE OF 5");
printf("
");
for(i=1;i<=10;i++)
{
printf("%d ",i*a);
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / mazahar
#include<stdio.h>
main()
{
int i,n=5;
for(i=0;i<=10;i++)
printf("%d*%d=%d",n,i,n*i);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Describe how arrays can be passed to a user defined function
which one low Priority in c? a)=,b)++,c)==,d)+
How can I change their mode to binary?
how can we print hellow world programme without using semicolon
What is derived datatype in c?
How can you dynamically allocate memory in C?
How can I make sure that my program is the only one accessing a file?
What is wrong in this statement? scanf(“%d”,whatnumber);
What do you understand by friend-functions? How are they used?
Write the syntax and purpose of a switch statement in C.
#include<stdio.h> int main(){ int a[]={1,2,3,5,1}; int *ptr=a+4; int y=ptr-a; printf("%d",y); }
Write a code to reverse string seperated by spaces i/p str=India is my country o/p str=aidnI si ym yrtnuoc After writing code, optimize the code