Answer Posted / sathish kumar .k
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,i;
int sum=0;
clrscr();
printf("Enter Two Nos");
scanf("%d%d",&a,&b);
for(i=0;i<a;i++)
sum=sum+1;
for(i=0;i<b;i++)
sum=sum+1;
printf("Sum:%d",sum);
getch();
}
Is This Answer Correct ? | 18 Yes | 26 No |
Post New Answer View All Answers
What is the return type of sizeof?
What are the different data types in C?
Was 2000 a leap year?
What is indirection?
Explain how do you sort filenames in a directory?
What does return 1 means in c?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is the purpose of the preprocessor directive error?
What is pointer to pointer in c with example?
What does p mean in physics?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What are structures and unions? State differencves between them.
What is the use of the function in c?
If errno contains a nonzero number, is there an error?