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
Does c have function or method?
What are identifiers in c?
What are the complete rules for header file searching?
What is the symbol indicated the c-preprocessor?
Explain what is wrong in this statement?
How do I get an accurate error status return from system on ms-dos?
What is the difference between if else and switchstatement
Here is a good puzzle: how do you write a program which produces its own source code as output?
Where we use clrscr in c?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What does sizeof function do?
What is null in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
write a c program to find the sum of five entered numbers using an array named number
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers